cloudfoundry / bosh-softlayer-cpi-release

An external BOSH CPI for the SoftLayer cloud written in Golang
Apache License 2.0
14 stars 20 forks source link

Failed to change ephemeral disk size #294

Closed mattcui closed 6 years ago

mattcui commented 6 years ago

There did show the response from SL to the place order, but the disk is not changed on the target VM

886793259:softlayerGo] 2018/10/16 19:52:54 [DEBUG] Request URL:  POST https://api.service.softlayer.com/rest/v3.1/SoftLayer_Product_Order/placeOrder.json
[886793259:softlayerGo] 2018/10/16 19:52:54 [DEBUG] Parameters:  {"parameters":[{"complexType":"SoftLayer_Container_Product_Order_Virtual_Guest_Upgrade","pac
kageId":46,"prices":[{"categories":[{"categoryCode":"guest_disk1","id":82}],"id":26248,"item":{"capacity":300,"description":"300 GB (LOCAL)"}}],"properties":
[{"name":"MAINTENANCE_WINDOW","value":"2018-10-17T00:52:54Z"},{"name":"NOTE_GENERAL","value":"Upgrade instance configuration."}],"virtualGuests":[{"id":41925
715}]},false]}
[886793259:softlayerGo] 2018/10/16 19:53:02 [DEBUG] Status Code:  200
[886793259:softlayerGo] 2018/10/16 19:53:02 [DEBUG] Response:  {"orderDate":"2018-10-17T08:53:01+08:00"
cf-gitbot commented 6 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/161273345

The labels on this github issue will be updated when the story is started.

edwardstudy commented 6 years ago

SL support told me that VM had the primary disk(/dev/xvdc) and secondary disk(/dev/xvde).

bosh/0:/home/SSO/bjxzi# sfdisk -s /dev/xvdc
104857600
bosh/0:/home/SSO/bjxzi# sfdisk -s /dev/xvde
314572800
edwardstudy commented 6 years ago

And I reload the dummy deployment and could not reproduce this issue: Before reload with 100GB ephemeral disk:

/:~# sfdisk -s /dev/xvdc
104857600

After reload with 300GB ephemeral disk:

/:~# sfdisk -s /dev/xvdc
314572800

And CPI logs:

[110461065:softlayerGo] 2018/10/17 04:18:55 [DEBUG] Request URL:  POST https://api.softlayer.com/rest/v3.1/SoftLayer_Product_Order/placeOrder.json
[110461065:softlayerGo] 2018/10/17 04:18:55 [DEBUG] Parameters:  {"parameters":[{"complexType":"SoftLayer_Container_Product_Order_Virtual_Guest_Upgrade","packageId":46,"prices":[{"categories":[{"categoryCode":"guest_disk1","id":82}],"id":112519,"item":{"capacity":300,"description":"300 GB (SAN)"}}],"properties":[{"name":"MAINTENANCE_WINDOW","value":"2018-10-17T04:18:55Z"},{"name":"NOTE_GENERAL","value":"Upgrade instance configuration."}],"virtualGuests":[{"id":62409003}]},false]}
[110461065:softlayerGo] 2018/10/17 04:19:02 [DEBUG] Status Code:  200
[110461065:softlayerGo] 2018/10/17 04:19:02 [DEBUG] Response:  {"orderDate":"2018-10-17T12:19:01+08:00"

It seemed that SAN disk could be replaced by upgrading.

edwardstudy commented 6 years ago

And local disk could not be reproduced this issue.

[151244087:softlayerGo] 2018/10/17 06:51:13 [DEBUG] Request URL:  POST https://api.softlayer.com/rest/v3.1/SoftLayer_Product_Order/placeOrder.json
[151244087:softlayerGo] 2018/10/17 06:51:13 [DEBUG] Parameters:  {"parameters":[{"complexType":"SoftLayer_Container_Product_Order_Virtual_Guest_Upgrade","packageId":46,"prices":[{"categories":[{"categoryCode":"guest_disk1","id":82}],"id":112911,"item":{"capacity":300,"description":"300 GB (LOCAL)"}}],"properties":[{"name":"MAINTENANCE_WINDOW","value":"2018-10-17T06:51:13Z"},{"name":"NOTE_GENERAL","value":"Upgrade instance configuration."}],"virtualGuests":[{"id":63590107}]},false]}
[151244087:softlayerGo] 2018/10/17 06:51:20 [DEBUG] Status Code:  200
[151244087:softlayerGo] 2018/10/17 06:51:20 [DEBUG] Response:  {"orderDate":"2018-10-17T14:51:19+08:00",

Will open ticket about this issue.

mattcui commented 6 years ago

Looks like this is an one-off problem specific on that target VM since the disk was ever changed manually, including disk name. Closing this issue.