I forgot to mention that the rename operation is already implemented in master [1] for images, templates, vms and vnets.<div><br></div><div>[1] <a href="http://dev.opennebula.org/issues/1686">http://dev.opennebula.org/issues/1686</a><br clear="all">
<div>--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
</div>
<br><br><div class="gmail_quote">On Tue, Feb 19, 2013 at 3:00 PM, Vassilis Vatikiotis <span dir="ltr"><<a href="mailto:vatikiot@iit.demokritos.gr" target="_blank">vatikiot@iit.demokritos.gr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Oh, but I do need the option to rename my resources via the one* CLI<br>
commands. I'll go with GUI sql tool for now.<br>
<br>
On Tue, Feb 19, 2013 at 3:59 PM, Vassilis Vatikiotis<br>
<div class="HOEnZb"><div class="h5"><<a href="mailto:vatikiot@iit.demokritos.gr">vatikiot@iit.demokritos.gr</a>> wrote:<br>
> On Tue, Feb 19, 2013 at 3:51 PM, Carlos Martín Sánchez<br>
> <<a href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a>> wrote:<br>
>> All the information is read from the DB, so yes, it's possible to change<br>
>> anything you want.<br>
>> But there are lots of connections between different resources. For example a<br>
>> VM stores in its xml body not only the host id, but also the hostname, VMM<br>
>> driver...<br>
>><br>
>> I wouldn't edit the DB, but if you do, make sure you keep a backup and use<br>
>> onedb fsck tool [1] to fix *some* inconsistencies.<br>
>><br>
><br>
>> I wonder why do you need to change the IDs, is it something we should<br>
>> support for some reason?<br>
> Not really, I just needed to confirm that indeed all the resources<br>
> info is stored in the DB backed *only*. The other non-reason is that<br>
> when I'm feeling pedantic I want, e.g. host3 to have the ID 3. As far<br>
> as I'm concerned, I don't need this to be supported.<br>
><br>
>><br>
>> Regards<br>
>><br>
>> [1] <a href="http://opennebula.org/documentation:rel3.8:onedb" target="_blank">http://opennebula.org/documentation:rel3.8:onedb</a><br>
>><br>
>> --<br>
>> Carlos Martín, MSc<br>
>> Project Engineer<br>
>> OpenNebula - The Open-source Solution for Data Center Virtualization<br>
>> <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a> | @OpenNebula<br>
>><br>
>><br>
>> On Tue, Feb 19, 2013 at 2:25 PM, Vassilis Vatikiotis<br>
>> <<a href="mailto:vatikiot@iit.demokritos.gr">vatikiot@iit.demokritos.gr</a>> wrote:<br>
>>><br>
>>> Hello,<br>
>>><br>
>>> regarding your answer, is it possible to also change, in the DB,<br>
>>> resources IDs? Of course, within the DB, the IDs have to be consistent<br>
>>> so that relationships do not break. Assuming that DB consistency is<br>
>>> maintained, would this be possilbe?<br>
>>><br>
>>> On Tue, Feb 19, 2013 at 2:30 PM, Carlos Martín Sánchez<br>
>>> <<a href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a>> wrote:<br>
>>> > Did you stop opennebula before touching the DB?<br>
>>> > Otherwise, you will get the list output from the DB, and the individual<br>
>>> > info<br>
>>> > from the cache. This cached information will eventually replace the data<br>
>>> > in<br>
>>> > the DB.<br>
>>> ><br>
>>> > Regards<br>
>>> > --<br>
>>> > Carlos Martín, MSc<br>
>>> > Project Engineer<br>
>>> > OpenNebula - The Open-source Solution for Data Center Virtualization<br>
>>> > <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a> | @OpenNebula<br>
>>> ><br>
>>> ><br>
>>> > On Tue, Feb 19, 2013 at 12:27 PM, Alberto Picón Couselo<br>
>>> > <<a href="mailto:alpicon1@gmail.com">alpicon1@gmail.com</a>><br>
>>> > wrote:<br>
>>> >><br>
>>> >> Hi, there.<br>
>>> >><br>
>>> >> We would like to change names of resources, for instance, image names<br>
>>> >> or cluster names.<br>
>>> >><br>
>>> >> For example, we have changed image name information directly in MySQL<br>
>>> >> database, changing NAME column and BODY column from image_pool table.<br>
>>> >> However, SunStone shows the changes partially. Image data seems to be<br>
>>> >> changed in row view, but when we click over it, image details shows<br>
>>> >> older information.<br>
>>> >><br>
>>> >> We have similar results if we try to change image datastore<br>
>>> >> information. We need to change an image from one datastore to another<br>
>>> >> without reregistering it. If we change image_pool, datastore<br>
>>> >> information, SOURCE, DATASTORE_ID, DATASTORE, tags, Sunstone updates<br>
>>> >> the information partially...<br>
>>> >><br>
>>> >> Please, can you give us any clue to rename resources?<br>
>>> >><br>
>>> >> Best Regards,<br>
>>> >> Alberto Picón<br>
>>> >> _______________________________________________<br>
>>> >> Users mailing list<br>
>>> >> <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
>>> >> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > _______________________________________________<br>
>>> > Users mailing list<br>
>>> > <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
>>> > <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
>>> ><br>
>><br>
>><br>
</div></div></blockquote></div><br></div>