leolleeooleo commented on issue #3523:
URL: https://github.com/apache/cloudstack/issues/3523#issuecomment-823766493
CLOUDSTACK VERSION 4.15
CentOS 7.9
ceph version 15.2.10
I'm try to add ceph as a primary storage.
Neither UI or API Failed to add data store: Failed to create storage pool as
it is not accessible to hosts.
logs are:
~~~
Caused by: java.sql.SQLIntegrityConstraintViolationException: Column
'host_address' cannot be null
at
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:117)
at
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
at
com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
... 80 more
~~~
~~~
2021-04-20 23:23:26,374 DEBUG [c.c.a.t.Request]
(AgentManager-Handler-12:null) (logid:) Seq 7-3036270573777846440: Processing:
{ Ans: , MgmtId: 2886
861156, via: 7, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.Answer":{"result":"false","details":"java.lang.NumberFormatException:
For input string: ""
at
java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.base/java.lang.Integer.parseInt(Integer.java:662)
at java.base/java.lang.Integer.parseInt(Integer.java:770)
at
com.cloud.hypervisor.kvm.resource.LibvirtStoragePoolXMLParser.parseStoragePoolXML(LibvirtStoragePoolXMLParser.java:58)
at
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getStoragePoolDef(LibvirtStorageAdaptor.java:413)
at
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getStoragePool(LibvirtStorageAdaptor.java:439)
at
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getStoragePool(LibvirtStorageAdaptor.java:424)
at
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.createStoragePool(LibvirtStorageAdaptor.java:654)
at
com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:329)
at
com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:323)
~~~
what I was done:
1. add port number ":6789" after RADOS Monitor IP address.
(https://github.com/apache/cloudstack/pull/4565)
2. regenerate ceph secret key until it does not contains Specific symbol '/'
or '_'.
3. cpoy "ceph.client.admin.keyring" to /etc/ceph on each KVM node. (I think
this step is unnecessary)
the files in /etc/libvirt/secrets/
<UUID>.xml and <UUID>.base64
does not change when I add primary storage again.
logs is still being NumberFormatException.
following step do on each KVM node
~~~
# virsh pool-list
# virsh pool-destroy <UUID>
# virsh secret-list
# virsh secret-undefine <UUID>
~~~
Finaily, add ceph as primary storage again on UI works fine for me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]