chef / knife-vrealize

Plugin for Chef's knife tool to interact with VMware vRealize products
Apache License 2.0
13 stars 13 forks source link

node name does not match the machine name created (purge also fails) #30

Open mcascone opened 7 years ago

mcascone commented 7 years ago

Versions:

Platform Details

Scenario:

The node name if not specified should match the machine name created. Also expect the --purge option to also delete the chef node.

Steps to Reproduce:

knife vra server delete --purge b34e86f6-e906-453a-8f0d-0ec832f2ad75

Expected Result:

if not specified using -N, chef node name == machine name chef node is deleted along with the vra server

Actual Result:

Creation:

...
10.12.235.58 [2017-08-18T10:45:11-05:00] WARN: Node vra-3907673214 has an empty run list.
...
Server ID: 249a645d-4107-4af1-af8c-1eddbf13a60e
Server Name: MTPCTSCID956
Waiting For vRA to collect the IPWaiting For vRA to collect the IPIP Addresses: 10.12.235.58
Status: ACTIVE

Deletion:

>knife vra server delete --purge 249a645d-4107-4af1-af8c-1eddbf13a60e -y
Server ID: 249a645d-4107-4af1-af8c-1eddbf13a60e
Server Name: MTPCTSCID956
Waiting For vRA to collect the IPWaiting For vRA to collect the IPIP Addresses: 10.12.235.58
Status: ACTIVE
...
Destroy request 578cc723-a9cf-4934-b228-b8c7ac9660c5 submitted.
...
Request Status: SUCCESSFUL
Completion State: SUCCESSFUL
WARNING: 404 "Object Not Found". Could not find a node named MTPCTSCID956 to delete!
jjasghar commented 7 years ago

Ah yeah, this seems like an enhancement we should add. thanks for this report, and I'll attempt to get it built-in at some point.

mcascone commented 7 years ago

Thanks! Also, it'd be very nice to see the node name returned at the end of the run. (Not seeing it is one reason why it took me a while to realize it was getting that "vra-" name.)