Last modified: 2014-04-02 14:15:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T65322, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63322 - ec2id puppet fact can yield some arbitrary HTML
ec2id puppet fact can yield some arbitrary HTML
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
Infrastructure (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-31 19:30 UTC by Antoine "hashar" Musso (WMF)
Modified: 2014-04-02 14:15 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2014-03-31 19:30:05 UTC
I found out deployment-salt.eqiad.wmflabs puppet master got broken.  Looking at ./puppet.conf and ./puppet.conf.d/10-self.conf I noticed the certname = fields had some HTML such as:

<html>
<title>error 500</title>
blah some error message

Which ... break puppet!



Our factor in modules/base/lib/facter/ec2id.rb has no error handling:

       Facter::Util::Resolution.exec("curl http://169.254.169.254/1.0/meta-data/instance-id 2> /dev/null").chomp


Whenever the executed commands has an error it should bails out.  Hopefully curl exit with non 0 whenever it receives a 500.
Comment 1 Gerrit Notification Bot 2014-04-02 06:56:43 UTC
Change 123168 had a related patch set uploaded by Hashar:
Labs: prevent ec2id fact from returing errors

https://gerrit.wikimedia.org/r/123168
Comment 2 Gerrit Notification Bot 2014-04-02 13:28:39 UTC
Change 123168 merged by Andrew Bogott:
Labs: prevent ec2id fact from returing errors

https://gerrit.wikimedia.org/r/123168
Comment 3 Tim Landscheidt 2014-04-02 14:15:35 UTC
Appears to have been fixed (cf. also Gerrit change #123221).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links