Closed edwardstudy closed 3 years ago
@EdwardStudy Hm, I'm surprised that you're seeing sfdisk
being used - these two files should combine to make the partitioner type be parted
. Can you confirm that /var/vcap/bosh/agent.json
has Platform.Linux.PartitionerType: parted
set?
We've seen the above issue before; it's caused by an incompatability between the bosh agent and newer versions of sfdisk
. Using parted
instead fixes the problem, hence my previous question
@tjvman Your approach worked. But there still had a problem about open-iscsi service which used by softlayer builder stage.
On trusty, open-iscsi is 'Starts and stops the iSCSI initiator services and logs into default targets'. But open-iscsi is 'Login to default iSCSI targets at boot and log out of all iSCSI targets at shutdown' on xenial. However, iscsid is 'The iSCSI initiator daemon takes care of monitoring iSCSI connections to targets. It is also the daemon providing the interface for the iscisadm tool to talk to when administering iSCSI connections.' on xenial.
I just send a bug report: https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1753353
Could you have any idea about this issue?
Closing this issue as there is no activity for a very long time you can reopen this issue if the issue still persists
Hi, we were trying to build SoftLayer xenial stemcell with this based OS image: https://github.com/cloudfoundry/bosh-linux-stemcell-builder/blob/master/bosh-stemcell/os_image_versions.json#L4. It failed during compiler vm creation:
This error was caused due to the bosh-agent(v2.65.0) failed to partition ephemeral disk in the compilation VM:
[main] 2018/02/08 02:43:01 ERROR - Agent exited with error: Running bootstrap: Setting up ephemeral disk: Partitioning ephemeral disk: Partitioning ephemeral disk '/dev/xvdc': Getting partitions for /dev/xvdc: Shelling out to sfdisk when getting partitions: Running command: 'sfdisk -d /dev/xvdc', stdout: '', stderr: 'sfdisk: failed to dump partition table: Success
And 'sfdisk -l' result seems normal:
Hope detailed logs help you:
Thank you so much. :)