[Yahoo-eng-team] [Bug 1655182] Re: keystone-manage mapping_engine tester problems
This bug was fixed in the package keystone - 2:10.0.2-0ubuntu1~cloud0 --- keystone (2:10.0.2-0ubuntu1~cloud0) xenial-newton; urgency=medium . [ Frode Nordahl ] * d/p/keystone_manage_mapping_engine_fix.patch: Fix keystone-manage mapping_engine usability issues (LP: #1655182). . [ James Page ] * New upstream point release for OpenStack Newton (LP: #1705176). ** Changed in: cloud-archive/newton Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/1655182 Title: keystone-manage mapping_engine tester problems Status in Ubuntu Cloud Archive: Fix Released Status in Ubuntu Cloud Archive mitaka series: Fix Released Status in Ubuntu Cloud Archive newton series: Fix Released Status in OpenStack Identity (keystone): Fix Released Status in keystone package in Ubuntu: Fix Released Status in keystone source package in Xenial: Fix Released Status in keystone source package in Yakkety: Won't Fix Bug description: [Impact] * A bug in keystone-manage tool prohibits the use of the mapping_engine command for testing federation rules. * Users of Keystone Federation will not be able to verify their mapping rules before pushing these to production. * Not being able to test rules before pushing to production is a major operational challenge for our users. * The proposed upload fixes this by backporting a fix for this issue from upstream stable/ocata. [Test Case] * Deploy keystone using Juju with this bundle: http://pastebin.ubuntu.com/24855409/ * ssh to keystone unit, grab artifacts and run command: - mapping.json: http://pastebin.ubuntu.com/24855419/ - input.txt: http://pastebin.ubuntu.com/24855420/ - command: 'keystone-manage mapping_engine --rules mapping.json --input input.txt' * Observe that command provides no output and that a Python Traceback is printed in /var/log/keystone/keystone.log * Install the proposed package, repeat the above steps and observe that the command now outputs its interpretation and effect of the rules. [Regression Potential] * keystone-manage mapping_engine is a operational test tool and is solely used by the operator to test their rules. * The distributed version of this command in Xenial and Yakkety does currently not work at all. * The change will make the command work as our users expect it to. [Original bug description] There are several problems with keystone-manage mapping_engine * It aborts with a backtrace because of wrong number of arguments passed to the RuleProcessor * The --engine-debug option does not work. * Error messages related to input data are cryptic and inprecise. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1655182/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1655182] Re: keystone-manage mapping_engine tester problems
This bug was fixed in the package keystone - 2:9.3.0-0ubuntu3~cloud0 --- keystone (2:9.3.0-0ubuntu3~cloud0) trusty-mitaka; urgency=medium . * New update for the Ubuntu Cloud Archive. . keystone (2:9.3.0-0ubuntu3) xenial; urgency=medium . * d/p/keystone_manage_mapping_engine_fix.patch: Fix keystone-manage mapping_engine usability issues (LP: #1655182). ** Changed in: cloud-archive/mitaka Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/1655182 Title: keystone-manage mapping_engine tester problems Status in Ubuntu Cloud Archive: Fix Released Status in Ubuntu Cloud Archive mitaka series: Fix Released Status in Ubuntu Cloud Archive newton series: Fix Committed Status in OpenStack Identity (keystone): Fix Released Status in keystone package in Ubuntu: Fix Released Status in keystone source package in Xenial: Fix Released Status in keystone source package in Yakkety: Won't Fix Bug description: [Impact] * A bug in keystone-manage tool prohibits the use of the mapping_engine command for testing federation rules. * Users of Keystone Federation will not be able to verify their mapping rules before pushing these to production. * Not being able to test rules before pushing to production is a major operational challenge for our users. * The proposed upload fixes this by backporting a fix for this issue from upstream stable/ocata. [Test Case] * Deploy keystone using Juju with this bundle: http://pastebin.ubuntu.com/24855409/ * ssh to keystone unit, grab artifacts and run command: - mapping.json: http://pastebin.ubuntu.com/24855419/ - input.txt: http://pastebin.ubuntu.com/24855420/ - command: 'keystone-manage mapping_engine --rules mapping.json --input input.txt' * Observe that command provides no output and that a Python Traceback is printed in /var/log/keystone/keystone.log * Install the proposed package, repeat the above steps and observe that the command now outputs its interpretation and effect of the rules. [Regression Potential] * keystone-manage mapping_engine is a operational test tool and is solely used by the operator to test their rules. * The distributed version of this command in Xenial and Yakkety does currently not work at all. * The change will make the command work as our users expect it to. [Original bug description] There are several problems with keystone-manage mapping_engine * It aborts with a backtrace because of wrong number of arguments passed to the RuleProcessor * The --engine-debug option does not work. * Error messages related to input data are cryptic and inprecise. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1655182/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1655182] Re: keystone-manage mapping_engine tester problems
This bug was fixed in the package keystone - 2:9.3.0-0ubuntu3 --- keystone (2:9.3.0-0ubuntu3) xenial; urgency=medium * d/p/keystone_manage_mapping_engine_fix.patch: Fix keystone-manage mapping_engine usability issues (LP: #1655182). -- Frode NordahlTue, 25 Jul 2017 17:53:12 +0100 ** Changed in: keystone (Ubuntu Xenial) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/1655182 Title: keystone-manage mapping_engine tester problems Status in Ubuntu Cloud Archive: Fix Released Status in Ubuntu Cloud Archive mitaka series: Fix Committed Status in Ubuntu Cloud Archive newton series: Fix Committed Status in OpenStack Identity (keystone): Fix Released Status in keystone package in Ubuntu: Fix Released Status in keystone source package in Xenial: Fix Released Status in keystone source package in Yakkety: Won't Fix Bug description: [Impact] * A bug in keystone-manage tool prohibits the use of the mapping_engine command for testing federation rules. * Users of Keystone Federation will not be able to verify their mapping rules before pushing these to production. * Not being able to test rules before pushing to production is a major operational challenge for our users. * The proposed upload fixes this by backporting a fix for this issue from upstream stable/ocata. [Test Case] * Deploy keystone using Juju with this bundle: http://pastebin.ubuntu.com/24855409/ * ssh to keystone unit, grab artifacts and run command: - mapping.json: http://pastebin.ubuntu.com/24855419/ - input.txt: http://pastebin.ubuntu.com/24855420/ - command: 'keystone-manage mapping_engine --rules mapping.json --input input.txt' * Observe that command provides no output and that a Python Traceback is printed in /var/log/keystone/keystone.log * Install the proposed package, repeat the above steps and observe that the command now outputs its interpretation and effect of the rules. [Regression Potential] * keystone-manage mapping_engine is a operational test tool and is solely used by the operator to test their rules. * The distributed version of this command in Xenial and Yakkety does currently not work at all. * The change will make the command work as our users expect it to. [Original bug description] There are several problems with keystone-manage mapping_engine * It aborts with a backtrace because of wrong number of arguments passed to the RuleProcessor * The --engine-debug option does not work. * Error messages related to input data are cryptic and inprecise. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1655182/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1655182] Re: keystone-manage mapping_engine tester problems
** Changed in: keystone (Ubuntu Yakkety) Status: Triaged => Won't Fix -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/1655182 Title: keystone-manage mapping_engine tester problems Status in Ubuntu Cloud Archive: Fix Released Status in Ubuntu Cloud Archive mitaka series: Triaged Status in Ubuntu Cloud Archive newton series: Triaged Status in OpenStack Identity (keystone): Fix Released Status in keystone package in Ubuntu: Fix Released Status in keystone source package in Xenial: Triaged Status in keystone source package in Yakkety: Won't Fix Bug description: [Impact] * A bug in keystone-manage tool prohibits the use of the mapping_engine command for testing federation rules. * Users of Keystone Federation will not be able to verify their mapping rules before pushing these to production. * Not being able to test rules before pushing to production is a major operational challenge for our users. * The proposed upload fixes this by backporting a fix for this issue from upstream stable/ocata. [Test Case] * Deploy keystone using Juju with this bundle: http://pastebin.ubuntu.com/24855409/ * ssh to keystone unit, grab artifacts and run command: - mapping.json: http://pastebin.ubuntu.com/24855419/ - input.txt: http://pastebin.ubuntu.com/24855420/ - command: 'keystone-manage mapping_engine --rules mapping.json --input input.txt' * Observe that command provides no output and that a Python Traceback is printed in /var/log/keystone/keystone.log * Install the proposed package, repeat the above steps and observe that the command now outputs its interpretation and effect of the rules. [Regression Potential] * keystone-manage mapping_engine is a operational test tool and is solely used by the operator to test their rules. * The distributed version of this command in Xenial and Yakkety does currently not work at all. * The change will make the command work as our users expect it to. [Original bug description] There are several problems with keystone-manage mapping_engine * It aborts with a backtrace because of wrong number of arguments passed to the RuleProcessor * The --engine-debug option does not work. * Error messages related to input data are cryptic and inprecise. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1655182/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1655182] Re: keystone-manage mapping_engine tester problems
** Also affects: cloud-archive/mitaka Importance: Undecided Status: New ** Also affects: cloud-archive/newton Importance: Undecided Status: New ** Also affects: keystone (Ubuntu Xenial) Importance: Undecided Status: New ** Also affects: keystone (Ubuntu Yakkety) Importance: Undecided Status: New ** Changed in: cloud-archive/mitaka Status: New => Triaged ** Changed in: cloud-archive/newton Status: New => Triaged ** Changed in: keystone (Ubuntu Xenial) Status: New => Triaged ** Changed in: keystone (Ubuntu Yakkety) Status: New => Triaged -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/1655182 Title: keystone-manage mapping_engine tester problems Status in Ubuntu Cloud Archive: Fix Released Status in Ubuntu Cloud Archive mitaka series: Triaged Status in Ubuntu Cloud Archive newton series: Triaged Status in OpenStack Identity (keystone): Fix Released Status in keystone package in Ubuntu: Fix Released Status in keystone source package in Xenial: Triaged Status in keystone source package in Yakkety: Triaged Bug description: [Impact] * A bug in keystone-manage tool prohibits the use of the mapping_engine command for testing federation rules. * Users of Keystone Federation will not be able to verify their mapping rules before pushing these to production. * Not being able to test rules before pushing to production is a major operational challenge for our users. * The proposed upload fixes this by backporting a fix for this issue from upstream stable/ocata. [Test Case] * Deploy keystone using Juju with this bundle: http://pastebin.ubuntu.com/24855409/ * ssh to keystone unit, grab artifacts and run command: - mapping.json: http://pastebin.ubuntu.com/24855419/ - input.txt: http://pastebin.ubuntu.com/24855420/ - command: 'keystone-manage mapping_engine --rules mapping.json --input input.txt' * Observe that command provides no output and that a Python Traceback is printed in /var/log/keystone/keystone.log * Install the proposed package, repeat the above steps and observe that the command now outputs its interpretation and effect of the rules. [Regression Potential] * keystone-manage mapping_engine is a operational test tool and is solely used by the operator to test their rules. * The distributed version of this command in Xenial and Yakkety does currently not work at all. * The change will make the command work as our users expect it to. [Original bug description] There are several problems with keystone-manage mapping_engine * It aborts with a backtrace because of wrong number of arguments passed to the RuleProcessor * The --engine-debug option does not work. * Error messages related to input data are cryptic and inprecise. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1655182/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1655182] Re: keystone-manage mapping_engine tester problems
** Changed in: cloud-archive Status: New => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/1655182 Title: keystone-manage mapping_engine tester problems Status in Ubuntu Cloud Archive: Fix Released Status in OpenStack Identity (keystone): Fix Released Status in keystone package in Ubuntu: Fix Released Bug description: [Impact] * A bug in keystone-manage tool prohibits the use of the mapping_engine command for testing federation rules. * Users of Keystone Federation will not be able to verify their mapping rules before pushing these to production. * Not being able to test rules before pushing to production is a major operational challenge for our users. * The proposed upload fixes this by backporting a fix for this issue from upstream stable/ocata. [Test Case] * Deploy keystone using Juju with this bundle: http://pastebin.ubuntu.com/24855409/ * ssh to keystone unit, grab artifacts and run command: - mapping.json: http://pastebin.ubuntu.com/24855419/ - input.txt: http://pastebin.ubuntu.com/24855420/ - command: 'keystone-manage mapping_engine --rules mapping.json --input input.txt' * Observe that command provides no output and that a Python Traceback is printed in /var/log/keystone/keystone.log * Install the proposed package, repeat the above steps and observe that the command now outputs its interpretation and effect of the rules. [Regression Potential] * keystone-manage mapping_engine is a operational test tool and is solely used by the operator to test their rules. * The distributed version of this command in Xenial and Yakkety does currently not work at all. * The change will make the command work as our users expect it to. [Original bug description] There are several problems with keystone-manage mapping_engine * It aborts with a backtrace because of wrong number of arguments passed to the RuleProcessor * The --engine-debug option does not work. * Error messages related to input data are cryptic and inprecise. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1655182/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1655182] Re: keystone-manage mapping_engine tester problems
** Description changed: + [Impact] + + * A bug in keystone-manage tool prohibits the use of the mapping_engine + command for testing federation rules. + + * Users of Keystone Federation will not be able to verify their mapping + rules before pushing these to production. + + * Not being able to test rules before pushing to production is a major + operational challenge for our users. + + * The proposed upload fixes this by backporting a fix for this issue + from upstream stable/ocata. + + [Test Case] + + * Deploy keystone using Juju with this bundle: +http://pastebin.ubuntu.com/24855409/ + + * ssh to keystone unit, grab artifacts and run command: +- mapping.json: http://pastebin.ubuntu.com/24855419/ +- input.txt: http://pastebin.ubuntu.com/24855420/ +- command: +'keystone-manage mapping_engine --rules mapping.json --input input.txt' + + * Observe that command provides no output and that a Python Traceback + is printed in /var/log/keystone/keystone.log + + * Install the proposed package, repeat the above steps and observe that + the command now outputs its interpretation and effect of the rules. + + [Regression Potential] + + * keystone-manage mapping_engine is a operational test tool and is + solely used by the operator to test their rules. + + * The distributed version of this command in Xenial and Yakkety does + currently not work at all. + + * The change will make the command work as our users expect it to. + + [Original bug description] There are several problems with keystone-manage mapping_engine - + * It aborts with a backtrace because of wrong number of arguments - passed to the RuleProcessor - + passed to the RuleProcessor + * The --engine-debug option does not work. - + * Error messages related to input data are cryptic and inprecise. ** Tags added: sts-sru-needed ** Also affects: keystone (Ubuntu) Importance: Undecided Status: New ** Also affects: cloud-archive Importance: Undecided Status: New ** Changed in: keystone (Ubuntu) Status: New => Fix Released ** Patch added: "keystone-yakkety.debdiff" https://bugs.launchpad.net/cloud-archive/+bug/1655182/+attachment/4895734/+files/keystone-yakkety.debdiff -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/1655182 Title: keystone-manage mapping_engine tester problems Status in Ubuntu Cloud Archive: Fix Released Status in OpenStack Identity (keystone): Fix Released Status in keystone package in Ubuntu: Fix Released Bug description: [Impact] * A bug in keystone-manage tool prohibits the use of the mapping_engine command for testing federation rules. * Users of Keystone Federation will not be able to verify their mapping rules before pushing these to production. * Not being able to test rules before pushing to production is a major operational challenge for our users. * The proposed upload fixes this by backporting a fix for this issue from upstream stable/ocata. [Test Case] * Deploy keystone using Juju with this bundle: http://pastebin.ubuntu.com/24855409/ * ssh to keystone unit, grab artifacts and run command: - mapping.json: http://pastebin.ubuntu.com/24855419/ - input.txt: http://pastebin.ubuntu.com/24855420/ - command: 'keystone-manage mapping_engine --rules mapping.json --input input.txt' * Observe that command provides no output and that a Python Traceback is printed in /var/log/keystone/keystone.log * Install the proposed package, repeat the above steps and observe that the command now outputs its interpretation and effect of the rules. [Regression Potential] * keystone-manage mapping_engine is a operational test tool and is solely used by the operator to test their rules. * The distributed version of this command in Xenial and Yakkety does currently not work at all. * The change will make the command work as our users expect it to. [Original bug description] There are several problems with keystone-manage mapping_engine * It aborts with a backtrace because of wrong number of arguments passed to the RuleProcessor * The --engine-debug option does not work. * Error messages related to input data are cryptic and inprecise. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1655182/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1655182] Re: keystone-manage mapping_engine tester problems
Reviewed: https://review.openstack.org/418165 Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=f2d0f8c9ab38172a6e37b02339eac59da911435c Submitter: Jenkins Branch:master commit f2d0f8c9ab38172a6e37b02339eac59da911435c Author: John DennisDate: Tue Nov 29 11:36:32 2016 -0500 Fix keystone-manage mapping_engine tester There were several problems with keystone-manage mapping_engine * It aborts with a backtrace because of wrong number of arguments passed to the RuleProcessor, it was missing the mapping_id parameter. * Error messages related to input data were cryptic and inprecise. * The --engine-debug option did not work. A fake mapping_id is now generated and passed to the RuleProcessor. If there was invalid data passed it was nearly impossible to determine what was causing the error, the command takes 2 input files, but which file contained the error? At what line? Why? For example I was consistently getting this error: Error while parsing line: '{': need more than 1 value to unpack and had no idea of what was wrong, the JSON looked valid to me. Turns out the assertion file is not formatted as JSON (yes this is documented in the help message but given the rules are JSON formatted and the RuleProcessor expects a dict for the assertion_data it's reasonsable to assume the data in the assertion file is formatted as a JSON object). The documentation in mapping_combinations.rst added a note in the section suggesting the use of the keystone-manage mapping_engine tester alerting the reader to the expected file formats. The MappingEngineTester class was refactored slighly to allow each method to know what file it was operating on and emit error messages that identify the file. The error message in addition to the pathname now includes the offending line number as well. As a bonus it doesn't fail if there is a blank line. The error message now looks like this: assertion file input.txt at line 4 expected 'key: value' but found 'foo' see help for file format The mapping_engine.LOG.logger level is now explictily set to DEBUG when --engine-debug is passed instead of (mistakenly assuming it defaulted to DEBUG) otherwise it's set to WARN. Closes-Bug: 1655182 Signed-off-by: John Dennis Change-Id: I2dea0f38b127ec185b79bfe06dd6a212da75cbca ** Changed in: keystone Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/1655182 Title: keystone-manage mapping_engine tester problems Status in OpenStack Identity (keystone): Fix Released Bug description: There are several problems with keystone-manage mapping_engine * It aborts with a backtrace because of wrong number of arguments passed to the RuleProcessor * The --engine-debug option does not work. * Error messages related to input data are cryptic and inprecise. To manage notifications about this bug go to: https://bugs.launchpad.net/keystone/+bug/1655182/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp