Glad to hear it! On Wed, 18 Sep 2019 at 11:34, Piotr Pisz <pi...@piszki.pl> wrote:
> Hi Andrija, > > > > Thanks for the info, your solution works. It was possible to easily > replace the IP address with a DNS record. Everything works correctly! :-) > > > > For community: virsh secret-undefine UUID > > > > Regards, > > Piotr > > > > > > *From:* Andrija Panic <andrija.pa...@gmail.com> > *Sent:* Tuesday, September 10, 2019 8:13 PM > *To:* users <users@cloudstack.apache.org>; Piotr Pisz <pi...@piszki.pl> > *Subject:* Re: replace existing rbd pool > > > > Piotr, > > > > user/secret is not encrypted or in any way related to the MON IPs/FQDN. > > > > The problem you have (afaik) is that your ACS is trying/asking libvirt to > create a new secret for (what seems to it as a new storage pool, due to now > using FQDN - i.e.since you changed it's IP to FQDNS, it needs to again > provision a new Ceph storage pool with new FQDN, which also requires a new > secret - but the value is the same, thus the problem... > > > > I would try to generate yet another ACS user/secret for the same pool - > and change both the IP and the user/secret in the DB to the new values - > thus KVM will be able to create what seems to be a NEW Ceph pool (using > FQDN) and the new user/secret XML. > > This means, you old VMs will continue to use old IP/user/secret on the old > POOL, while newly started VMs will use new FQDN, new user/secret and again > the old POOL. > > > > The alternative is to put Ceph in the maintennace mode (in ACS), which > will stop all VMs, and (should) remove Ceph pool from Libvirt - then change > IP to FQDN, and enable the Ceph in ACS - a Ceph storage pool will be added > to all your KVM hosts/libvirt - and you are good to go (start VMs). > > > > That being, said, make sure to test this in test ENV. > > > > Cheers, > > Andrija > > > > > > On Tue, 10 Sep 2019 at 03:54, Piotr Pisz <pi...@piszki.pl> wrote: > > Hello Users :-) > > I have a question, how to replace information about an existing rbd pool in > the database? > We want to replace a single IP with a round robin dns record, but the > information about the user / secret is probably encrypted and after > exchanging I get the message: > Failed to define the libvirt secret: org.libvirt.LibvirtException: internal > error: a secret with UUID fdf75cf1-3587-3d8b0a-5cf5c1b0f1d4 is already > defined for use with admin@x.x.x.x:6789/rbd > > Regards, > Piotr > > > > > -- > > > > Andrija Panić > -- Andrija Panić