[Bug 1810857] Re: Typo in cloud-guest-utils: "reserveration-id"
Rafael David Tinoco
rafaeldtinoco at kernelpath.com
Fri Aug 16 07:06:36 UTC 2019
@rbasak,
On your question, the option is passed as an argument to EC2Metadata
object and it calls:
def _get(self, uri, decode=True):
url = "%s/%s" % (self.burl, uri)
try:
resp = urllib_request.urlopen(urllib_request.Request(url))
value = resp.read()
where uri == fixed spelling option.
Meaning that the http request would be broken no matter what and the
spelling fix is not just cosmetic.
I also fixed the SRU template (I had done it only for the main bug of
the 3, all 3 now have the template).
@Brian, I think this covers what you flagged as incomplete, pls let me
know if not.
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1810857
Title:
Typo in cloud-guest-utils: "reserveration-id"
Status in cloud-utils package in Ubuntu:
Fix Released
Status in cloud-utils source package in Disco:
In Progress
Bug description:
[Impact]
* DEP8 race condition for ppc64el (LP: #1836593): intermittent
migration regressions.
* growpart: fix bug when file image ends in a digit (LP: #1835124):
image files can't end in ".ext4", for example, orelse growpart doesn't
work.
* fix spelling error in ec2metadata (LP: #1810857): no impact.
[Test Case]
$ ec2metadata --reservation-id
Error: option --reservation-id not recognized
...
$ ec2metadata | grep reserv
reserveration-id: unavailable
After applying this trivial (attached) patch, it works as expected:
$ ec2metadata --reservation-id
r-REDACTED
$ ec2metadata | grep reserv
reservation-id: r-REDACTED
[Regression Potential]
* Whoever has scripted ec2metadata already considering the misspelled
command might find the wrapper stops working after the update.
[Other Info]
ORIGINAL DESCRIPTION:
This may be related to Bug 510773.
This typo actually breaks functionality (see below), it's not just
"cosmetic"
$ ec2metadata --reservation-id
Error: option --reservation-id not recognized
...
$ ec2metadata | grep reserv
reserveration-id: unavailable
After applying this trivial (attached) patch, it works as expected:
$ ec2metadata --reservation-id
r-REDACTED
$ ec2metadata | grep reserv
reservation-id: r-REDACTED
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-utils/+bug/1810857/+subscriptions
More information about the Ubuntu-sponsors
mailing list