rackspace / rack

A CLI for Rackspace (unmaintained)
Other
81 stars 57 forks source link

Rebuild fails for servers which could use manual disk configuration #379

Closed carolynvs closed 8 years ago

carolynvs commented 8 years ago
  1. Create a server which could use manual disk configuration
    • Ubuntu 14.04 LTS (Trusty Tahr) (PV)
    • 1GB Standard Instance
  2. Attempt to rebuild the server using the rack cli.

error DiskConfig must be either diskconfig.Auto or diskconfig.Manual.

$ rack servers instance create --name bugtest --flavor-id 3 --image-id 5ed162cc-b4eb-4371-b24a-a0ae73376c73 --wait-for-completion

$ rack servers instance rebuild --name bugtest --image-id 5ed162cc-b4eb-4371-b24a-a0ae73376c73 --admin-pass *** --wait-for-completion
error   DiskConfig must be either diskconfig.Auto or diskconfig.Manual.

It appears that the API expects OS-DCF:diskConfig to be specified during a rebuild of an instance which could use manual disk config? I get this error for instances with both manual and automatic disk configuration.

Is there a way to pass custom json data to the API request? Or perhaps a new optional flag is needed for disk config?

rgbkrk commented 8 years ago

Sure seems like it. Thanks for reporting this one.

sigmavirus24 commented 8 years ago

I'm running into this with the version presently uploaded to https://developer.rackspace.com/docs/rack-cli/. Is there a way to work around this until a new binary with #380 is released?

jrperritt commented 8 years ago

You can build from source.

I'll try to get v1.2 pushed out this week.