Jira (BOLT-878) cryptic apply_prep error when not running as root
Title: Message Title Kate Lopresti updated an issue Puppet Task Runner / BOLT-878 cryptic apply_prep error when not running as root Change By: Kate Lopresti Labels: docs-reviewed resolved-issue-added Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (BOLT-878) cryptic apply_prep error when not running as root
Title: Message Title Alex Dreyer updated an issue Puppet Task Runner / BOLT-878 cryptic apply_prep error when not running as root Change By: Alex Dreyer Fix Version/s: BOLT Next Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (BOLT-878) cryptic apply_prep error when not running as root
Title: Message Title Alex Dreyer updated an issue Puppet Task Runner / BOLT-878 cryptic apply_prep error when not running as root Change By: Alex Dreyer Release Notes Summary: The puppet_agent task now checks that it's running as root and prints and fails fast with a helpful message if not Release Notes: Bug Fix Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (BOLT-878) cryptic apply_prep error when not running as root
Title: Message Title Alex Dreyer assigned an issue to Alex Dreyer Puppet Task Runner / BOLT-878 cryptic apply_prep error when not running as root Change By: Alex Dreyer Assignee: Alex Dreyer Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (BOLT-878) cryptic apply_prep error when not running as root
Title: Message Title Yasmin Rajabi updated an issue Puppet Task Runner / BOLT-878 cryptic apply_prep error when not running as root Change By: Yasmin Rajabi Sprint: Bolt Ready for Grooming Kanban Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (BOLT-878) cryptic apply_prep error when not running as root
Title: Message Title Yasmin Rajabi updated an issue Puppet Task Runner / BOLT-878 cryptic apply_prep error when not running as root Change By: Yasmin Rajabi Summary: cryptic apply_prep error when non not running as root Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (BOLT-878) cryptic apply_prep error when non running as root
Title: Message Title Alex Dreyer updated an issue Puppet Task Runner / BOLT-878 cryptic apply_prep error when non running as root Change By: Alex Dreyer The error message when the puppet_agent::install task fails because the user is not running as root is bad. We should probably ensure install_agent is run as root over ssh for apply_prep and error or warn otherwise. The _output embedded in a json object is not great either but I'm not sure how to fix that.Can the install_shell script should verify it has adaquate adequate permissions before starting and return a better error if not doesn't ?{noformat}{ "kind": "bolt/run-failure", "msg": "Plan aborted: run_task 'puppet_agent::install' failed on 1 nodes", "details": {"action": "run_task","object": "puppet_agent::install","result_set": [ {"node": "ssh://localhost","status": "failure","result": { "_output": "23:30:28 + INFO: Version parameter not defined, assuming latest\n23:30:28 + INFO: Downloading Puppet latest for ubuntu...\n23:30:28 + INFO: Ubuntu platform! Lets get you a DEB...\n23:30:28 + INFO: Downloading http://apt.puppetlabs.com/puppet-release-xenial.deb\n23:30:28 + INFO: to file /tmp/install.sh.4909.24628/puppet-release-xenial.deb\n23:30:28 + INFO: Trying wget...\n23:30:28 + INFO: installing puppetlabs apt repo with dpkg...\nReading package lists...\n23:30:28 + CRIT: Installation failed\n23:30:28 + CRIT: Please file a bug report at https://github.com/puppetlabs/puppetlabs-puppet_agent\n23:30:28 + CRIT: \n23:30:28 + CRIT: Version: latest\n23:30:28 + CRIT: Platform: ubuntu\n23:30:28 + CRIT: Platform Version: 16.04\n23:30:28 + CRIT: Machine: x86_64\n23:30:29 + CRIT: OS: Linux\n23:30:29 + CRIT: \n23:30:29 + CRIT: Please detail your operating system type, version and any other relevant details\n", "_error": {"kind": "puppetlabs.tasks/task-error","issue_code": "TASK_ERROR","msg": "The task failed with exit code 1","details": { "exit_code": 1} }} }] }}{noformat} Add Comment
Jira (BOLT-878) cryptic apply_prep error when non running as root
Title: Message Title David Kramer updated an issue Puppet Task Runner / BOLT-878 cryptic apply_prep error when non running as root Change By: David Kramer Summary: cryptic apply_prep error when non running as root . Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (BOLT-878) cryptic apply_prep error when non running as root.
Title: Message Title Alex Dreyer updated an issue Puppet Task Runner / BOLT-878 cryptic apply_prep error when non running as root. Change By: Alex Dreyer Sprint: Bolt Kanban Ready for Grooming Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (BOLT-878) cryptic apply_prep error when non running as root.
Title: Message Title Alex Dreyer updated an issue Puppet Task Runner / BOLT-878 cryptic apply_prep error when non running as root. Change By: Alex Dreyer The error message when the puppet_agent::install task fails because the user is not running as root is bad.We should probably ensure install_agent is run as root over ssh for apply_prep and error or warn otherwise. The _output embedded in a json object is not great either but I'm not sure how to fix that. Can the install_shell script verify it has adaquate permissions before starting and return a better error if not? {noformat}{ "kind": "bolt/run-failure", "msg": "Plan aborted: run_task 'puppet_agent::install' failed on 1 nodes", "details": {"action": "run_task","object": "puppet_agent::install","result_set": [ {"node": "ssh://localhost","status": "failure","result": { "_output": "23:30:28 + INFO: Version parameter not defined, assuming latest\n23:30:28 + INFO: Downloading Puppet latest for ubuntu...\n23:30:28 + INFO: Ubuntu platform! Lets get you a DEB...\n23:30:28 + INFO: Downloading http://apt.puppetlabs.com/puppet-release-xenial.deb\n23:30:28 + INFO: to file /tmp/install.sh.4909.24628/puppet-release-xenial.deb\n23:30:28 + INFO: Trying wget...\n23:30:28 + INFO: installing puppetlabs apt repo with dpkg...\nReading package lists...\n23:30:28 + CRIT: Installation failed\n23:30:28 + CRIT: Please file a bug report at https://github.com/puppetlabs/puppetlabs-puppet_agent\n23:30:28 + CRIT: \n23:30:28 + CRIT: Version: latest\n23:30:28 + CRIT: Platform: ubuntu\n23:30:28 + CRIT: Platform Version: 16.04\n23:30:28 + CRIT: Machine: x86_64\n23:30:29 + CRIT: OS: Linux\n23:30:29 + CRIT: \n23:30:29 + CRIT: Please detail your operating system type, version and any other relevant details\n", "_error": {"kind": "puppetlabs.tasks/task-error","issue_code": "TASK_ERROR","msg": "The task failed with exit code 1","details": { "exit_code": 1} }} }] }}{noformat} Add Comment
Jira (BOLT-878) cryptic apply_prep error when non running as root.
Title: Message Title Alex Dreyer created an issue Puppet Task Runner / BOLT-878 cryptic apply_prep error when non running as root. Issue Type: Bug Assignee: Unassigned Created: 2018/09/28 8:28 AM Priority: Normal Reporter: Alex Dreyer The error message when the puppet_agent::install task fails because the user is not running as root is bad. We should probably ensure install_agent is run as root over ssh for apply_prep and error or warn otherwise. The _output embedded in a json object is not great either but I'm not sure how to fix that. { "kind": "bolt/run-failure", "msg": "Plan aborted: run_task 'puppet_agent::install' failed on 1 nodes", "details": { "action": "run_task", "object": "puppet_agent::install",