{"action":"closed","issue":{"url":"https://api.github.com/repos/fog/fog/issues/2761","labels_url":"https://api.github.com/repos/fog/fog/issues/2761/labels{/name}","comments_url":"https://api.github.com/repos/fog/fog/issues/2761/comments","events_url":"https://api.github.com/repos/fog/fog/issues/2761/events","html_url":"https://github.com/fog/fog/issues/2761","id":29422789,"number":2761,"title":"VM rename isn't persistant (vCloud Director)","user":{"login":"g3kk0","id":1510686,"avatar_url":"https://avatars.githubusercontent.com/u/1510686?v=3","gravatar_id":"","url":"https://api.github.com/users/g3kk0","html_url":"https://github.com/g3kk0","followers_url":"https://api.github.com/users/g3kk0/followers","following_url":"https://api.github.com/users/g3kk0/following{/other_user}","gists_url":"https://api.github.com/users/g3kk0/gists{/gist_id}","starred_url":"https://api.github.com/users/g3kk0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g3kk0/subscriptions","organizations_url":"https://api.github.com/users/g3kk0/orgs","repos_url":"https://api.github.com/users/g3kk0/repos","events_url":"https://api.github.com/users/g3kk0/events{/privacy}","received_events_url":"https://api.github.com/users/g3kk0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-03-14T10:14:47Z","updated_at":"2015-09-04T14:35:03Z","closed_at":"2015-09-04T14:35:03Z","body":"Re-opened as the suggested fix (calling 'save' method) doesn't work.\r\n\r\nRenaming a VM doesn't appear to work/persist in vCloud Director:\r\n\r\nirb(main):085:0* vm\r\n=> id=\"vm-fkgdcca5-725a-4e87-bff3-46ef41480b53\",\r\nvapp_id=\"vapp-56ab1743-d41e-42c3-8bad-8d1a958dc119\",\r\nvapp_name=\"testbox\",\r\nname=\"centos65x64\",\r\ntype=\"application/vnd.vmware.vcloud.vm+xml\",\r\nhref=\"https://myvdc.example.com/api/vApp/vm-fkgdcca5-725a-4e87-bff3-46ef41480b53\",\r\nstatus=\"off\",\r\noperating_system=\"Red Hat Enterprise Linux 6 (64-bit)\",\r\nip_address=\"\",\r\ncpu=2,\r\nmemory=2048,\r\nhard_disks=[{\"Hard disk 1\"=>10240}]\r\n>\r\n\r\nEditing it just as you would for cpu or memory changes it but it doesn't remain changed after a reload.\r\n\r\nirb(main):105:0* vm.name = \"node1\"\r\n=> \"node1\"\r\n\r\nirb(main):085:0* vm\r\n=> id=\"vm-fkgdcca5-725a-4e87-bff3-46ef41480b53\",\r\nvapp_id=\"vapp-56ab1743-d41e-42c3-8bad-8d1a958dc119\",\r\nvapp_name=\"testbox\",\r\nname=\"node1\",\r\ntype=\"application/vnd.vmware.vcloud.vm+xml\",\r\nhref=\"https://myvdc.example.com/api/vApp/vm-fkgdcca5-725a-4e87-bff3-46ef41480b53\",\r\nstatus=\"off\",\r\noperating_system=\"Red Hat Enterprise Linux 6 (64-bit)\",\r\nip_address=\"\",\r\ncpu=2,\r\nmemory=2048,\r\nhard_disks=[{\"Hard disk 1\"=>10240}]\r\n>\r\n\r\nirb(main):085:0* vm.reload\r\n=> id=\"vm-fkgdcca5-725a-4e87-bff3-46ef41480b53\",\r\nvapp_id=\"vapp-56ab1743-d41e-42c3-8bad-8d1a958dc119\",\r\nvapp_name=\"testbox\",\r\nname=\"centos65x64\",\r\ntype=\"application/vnd.vmware.vcloud.vm+xml\",\r\nhref=\"https://myvdc.example.com/api/vApp/vm-fkgdcca5-725a-4e87-bff3-46ef41480b53\",\r\nstatus=\"off\",\r\noperating_system=\"Red Hat Enterprise Linux 6 (64-bit)\",\r\nip_address=\"\",\r\ncpu=2,\r\nmemory=2048,\r\nhard_disks=[{\"Hard disk 1\"=>10240}]\r\n>\r\n\r\nCalling the suggested vm.save method doesn't work as the method doesn't seem to exist like it does for the network object.\r\n\r\nirb(main):033:0> vm.save\r\nNoMethodError: undefined method save' for #<Fog::Compute::VcloudDirector::Vm:0x000000019e48b8>\r\nfrom (irb):33\r\nfrom /home/mnewman/.rbenv/versions/1.9.3-p448/bin/irb:12:in'\r\n"}}