Skip to content

Tests for PR # 19123: daemon option (--storage-opt dm.basesize) for increasing the base device size on daemon restart#19661

Merged
calavera merged 1 commit intomoby:masterfrom
shishir-a412ed:tests_rootfs_pr
Feb 10, 2016
Merged

Tests for PR # 19123: daemon option (--storage-opt dm.basesize) for increasing the base device size on daemon restart#19661
calavera merged 1 commit intomoby:masterfrom
shishir-a412ed:tests_rootfs_pr

Conversation

@shishir-a412ed
Copy link
Contributor

Signed-off-by: Shishir Mahajan [email protected]

@runcom
Copy link
Member

runcom commented Jan 25, 2016

adding milestone 1.10 since the relative PR is in the milestone as well

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure about this, maybe we need some testRequirement like this https://github.com/docker/docker/blob/master/integration-cli/requirements.go#L96

which tells us we are on devicemapper (I'm sure CI has a devicemapper build for master)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@calavera calavera removed this from the 1.10.0 milestone Jan 25, 2016
@calavera
Copy link
Contributor

No need to have it in the milestone, since it only adds tests 😁

Thanks @shishir-a412ed!

@shishir-a412ed shishir-a412ed force-pushed the tests_rootfs_pr branch 4 times, most recently from 24c98ce to 1df00a8 Compare January 26, 2016 21:34
@shishir-a412ed
Copy link
Contributor Author

Regarding comment #19661 (comment)
I discussed it with @runcom . In order to use HTTP GET request for /info endpoint, s.d.sock() needs to be binded to the daemon object, which currently is not binded.

@calavera what do you think. you okay using docker -H s.d.sock() info|grep Base Device Size to extract the base device size or you want to use the HTTP GET request to extract that information ?

@runcom said he can make that change if we go for the latter option.

@shishir-a412ed shishir-a412ed force-pushed the tests_rootfs_pr branch 6 times, most recently from 757292e to 937cd9e Compare February 2, 2016 16:13
@shishir-a412ed
Copy link
Contributor Author

@calavera @runcom
Any updates on this one ?

Shishir

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you maybe clean this up a bit, random carrige returns and vars should not be starting with a capital

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have changed the variable names to start with lowercase. The carriage returns are not random, they are in the output and needs to be trimmed. Otherwise the test fails.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are you parsing it as a float only to convert it to an int two lines later

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a difference between parsing and casting. strconv.ParseInt() would throw an error if a string with . ("12.59") is passed to it, which means a base device size of 12.59 cannot be directly parsed into an int. We need to parse it as a float and cast it into an int64.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you maybe clean this up a bit, random carrige returns and vars should not be starting with a capital

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

@shishir-a412ed shishir-a412ed force-pushed the tests_rootfs_pr branch 3 times, most recently from 477c04e to bce410e Compare February 5, 2016 16:17
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:) This review comment is very hard to fix !

@shishir-a412ed shishir-a412ed force-pushed the tests_rootfs_pr branch 3 times, most recently from 0edb40e to ccb987c Compare February 8, 2016 16:58
…ncreasing the base device size on daemon restart

Signed-off-by: Shishir Mahajan <[email protected]>
@calavera
Copy link
Contributor

calavera commented Feb 9, 2016

LGTM

@runcom
Copy link
Member

runcom commented Feb 9, 2016

LGTM waiting on janky

calavera added a commit that referenced this pull request Feb 10, 2016
Tests for PR # 19123: daemon option (--storage-opt dm.basesize) for increasing the base device size on daemon restart
@calavera calavera merged commit 321f291 into moby:master Feb 10, 2016
@calavera calavera deleted the tests_rootfs_pr branch February 10, 2016 01:30
shishir-a412ed pushed a commit to shishir-a412ed/docker that referenced this pull request May 5, 2016
…sesize) for increasing the base device size on daemon restart

Signed-off-by: Shishir Mahajan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants