Comments (6)
Added a story: https://www.pivotaltracker.com/story/show/129727181 to properly handle the error; however, this wouldnt fix the "sfdisk: cannot open" error. Are you sure changes for multipath disk handling are properly accounting for partitions?
from bosh-agent.
@cppforlife Yes, it's due to multipath, I submitted PR 93, please help review. Thank you!
/cc @maximilien @dpb587-pivotal
from bosh-agent.
Below is the agent log after making this change, worked as expected.
2016-09-05_12:13:05.45238 [linuxPlatform] 2016/09/05 12:13:05 DEBUG - Persistent disk size to be partitioned is: 21474836480, and error is: <nil>
2016-09-05_12:13:05.45240 [linuxPlatform] 2016/09/05 12:13:05 DEBUG - fdisk partitioner was chosen
2016-09-05_12:13:05.45240 [MountPersistentDisk] partitions passed into Partition()
2016-09-05_12:13:05.45242 [[Type: linux, SizeInBytes: 0]]
2016-09-05_12:13:05.45250 [Cmd Runner] 2016/09/05 12:13:05 DEBUG - Running command 'sfdisk -d /dev/mapper/3600a098038303453692447376330554d'
2016-09-05_12:13:05.45551 [Cmd Runner] 2016/09/05 12:13:05 DEBUG - Stdout: # partition table of /dev/mapper/3600a098038303453692447376330554d
2016-09-05_12:13:05.45552 unit: sectors
2016-09-05_12:13:05.45553
2016-09-05_12:13:05.45553 /dev/mapper/3600a098038303453692447376330554d1 : start= 1, size= 41929649, Id=83
2016-09-05_12:13:05.45554 /dev/mapper/3600a098038303453692447376330554d2 : start= 0, size= 0, Id= 0
2016-09-05_12:13:05.45554 /dev/mapper/3600a098038303453692447376330554d3 : start= 0, size= 0, Id= 0
2016-09-05_12:13:05.45555 /dev/mapper/3600a098038303453692447376330554d4 : start= 0, size= 0, Id= 0
2016-09-05_12:13:05.45555 [Cmd Runner] 2016/09/05 12:13:05 DEBUG - Stderr:
2016-09-05_12:13:05.45557 [Cmd Runner] 2016/09/05 12:13:05 DEBUG - Successful: true (0)
2016-09-05_12:13:05.45557 [getPartitions] sfdisk -d result split line: /dev/mapper/3600a098038303453692447376330554d1 : start= 1, size= 41929649, Id=83
2016-09-05_12:13:05.45562 [Cmd Runner] 2016/09/05 12:13:05 DEBUG - Running command 'sfdisk -s /dev/mapper/3600a098038303453692447376330554d-part1'
2016-09-05_12:13:05.46009 [Cmd Runner] 2016/09/05 12:13:05 DEBUG - Stdout: 20964824
2016-09-05_12:13:05.46010 [Cmd Runner] 2016/09/05 12:13:05 DEBUG - Stderr:
2016-09-05_12:13:05.46011 [Cmd Runner] 2016/09/05 12:13:05 DEBUG - Successful: true (0)
2016-09-05_12:13:05.46012 [getPartitions] partition.SizeInBytes is 21467979776
2016-09-05_12:13:05.46013 [getPartitions] sfdisk -d result split line: /dev/mapper/3600a098038303453692447376330554d2 : start= 0, size= 0, Id= 0
2016-09-05_12:13:05.46015 [getPartitions] sfdisk -d result split line: /dev/mapper/3600a098038303453692447376330554d3 : start= 0, size= 0, Id= 0
2016-09-05_12:13:05.46015 [getPartitions] sfdisk -d result split line: /dev/mapper/3600a098038303453692447376330554d4 : start= 0, size= 0, Id= 0
2016-09-05_12:13:05.46021 [Cmd Runner] 2016/09/05 12:13:05 DEBUG - Running command 'sfdisk -s /dev/mapper/3600a098038303453692447376330554d'
2016-09-05_12:13:05.46319 [Cmd Runner] 2016/09/05 12:13:05 DEBUG - Stdout: 20971520
2016-09-05_12:13:05.46320 [Cmd Runner] 2016/09/05 12:13:05 DEBUG - Stderr:
2016-09-05_12:13:05.46321 [Cmd Runner] 2016/09/05 12:13:05 DEBUG - Successful: true (0)
2016-09-05_12:13:05.46324 [SfdiskPartitioner] 2016/09/05 12:13:05 INFO - /dev/mapper/3600a098038303453692447376330554d already partitioned as expected, skipping
from bosh-agent.
@mattcui I believe this issue was resolved after fixing multipath disk lookup? Can be closed?
from bosh-agent.
@cppforlife It's addressed by my PR 93, the commit has been already merged into master branch 1.5 months ago, but it still hasn't been picked by BOSH release code, so we are still waiting for the new BOSH release which includes this fix. This fix is very important to our CF deployments on Softlayer. Thanks.
/cc @maximilien
from bosh-agent.
I saw the fix has already been merged in 3263.8 stemcell, closing this issue. Thanks.
from bosh-agent.
Related Issues (20)
- bosh agent may enter endless loop of restart after restarting network HOT 9
- Bosh agent paniced during host routing parsing HOT 4
- DNS entries from cloud-config are not getting updated correctly post bosh deployment HOT 4
- systemd-journald can not create new system journal HOT 1
- bosh-agent reporting erroneous disk data on bionic HOT 3
- Unable to mount a persistent disk with Bionic Stemcell on Softlayer HOT 22
- Agent panics from sfdisk output
- bin/test dev script is broken HOT 5
- bin/test-bosh-integration dev script is broken HOT 6
- sfdisk -uM causes partitioning to fail on some linux platforms HOT 4
- Unit test script is broken in main HOT 3
- Agent could be blocked by blobstore access issues HOT 8
- Windows agent is not able to gracefully shutdown job processes HOT 1
- connection flooding from bosh-agents whilst director is unavailable HOT 10
- [Windows] Failing process not reliably reported HOT 1
- (question) Would it be desired to have BTRFS as an alternative filesystem? HOT 2
- Modify the default setup of connection between agent and nats on director HOT 2
- Device path resolution times out for aws and ali HOT 25
- Persistent disk resize fails to handle linux sparse files, resulting in filling up target persistent disk
- Agent fails to boot on Noble Numbat pre-release stemcells
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bosh-agent.