Jira (PUP-11604) "puppet module list --render-as json" does not report unmet dependencies

3 views
Skip to first unread message

Chris Tessmer (Jira)

unread,
Aug 8, 2022, 2:51:03 PM8/8/22
to puppe...@googlegroups.com
Chris Tessmer created an issue
 
Puppet / Bug PUP-11604
"puppet module list --render-as json" does not report unmet dependencies
Issue Type: Bug Bug
Affects Versions: PUP 7.17.0
Assignee: Unassigned
Components: PMT
Created: 2022/08/08 11:50 AM
Labels: puppet rendering faces
Priority: Normal Normal
Reporter: Chris Tessmer

Puppet Version: 7.18.0
Puppet Server Version: N/A
OS Name/Version: N/A

Running puppet module list will report unmet dependencies on the console, but this information is missing when run with --render-as json

Desired Behavior:{}

 

bpuppet module list --render-as json | jq keys
 
[
  "environment",
  "modules_by_path",
  "unmet_dependencies"
]

 

Actual Behavior:

 

bpuppet module list --render-as json | jq keys
 
[
  "environment",
  "modules_by_path"
] 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Morgan Rhodes (Jira)

unread,
Aug 9, 2022, 4:08:01 PM8/9/22
to puppe...@googlegroups.com

Morgan Rhodes (Jira)

unread,
Aug 9, 2022, 4:08:02 PM8/9/22
to puppe...@googlegroups.com

Morgan Rhodes (Jira)

unread,
Aug 17, 2022, 12:38:01 PM8/17/22
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Aug 24, 2022, 6:31:02 PM8/24/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
*Puppet Version:* 7.18.0
*Puppet Server Version:* N/A
*OS Name/Version:* N/A

Running *{{puppet module list}}* will report unmet dependencies on the console, but this information is missing when run with \{*}{{--render-as json}}{*}. 

{*}Desired Behavior:{*}
{*}{*}

 
{noformat}

bpuppet module list --render-as json | jq keys

[
  "environment",
  "modules_by_path",
  "unmet_dependencies"
]
{noformat}
 

*Actual Behavior:*

 
{code:java}

bpuppet module list --render-as json | jq keys

[
  "environment",
  "modules_by_path"
]
{code}

Josh Cooper (Jira)

unread,
Aug 24, 2022, 6:33:01 PM8/24/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
*Puppet Version:* 7.18.0
*Puppet Server Version:* N/A
*OS Name/Version:* N/A

Running *{{puppet module list}}* will report unmet dependencies on the console, but this information is missing when run with \{*}{{--render-as json}}{*}. 

{*}Desired Behavior:{*}

 
{noformat}
bpuppet module list --render-as json | jq keys

[
  "environment",
  "modules_by_path",
  "unmet_dependencies"
]
{noformat}
 

*Actual Behavior:*

 
{code:java}
bpuppet module list --render-as json | jq keys

[
  "environment",
  "modules_by_path"
]
{code}


To reproduce:

{noformat}
$ bundle exec puppet module install puppetlabs-apt
Notice: Preparing to install into /home/josh/.puppetlabs/etc/code/environments/production/modules ...
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Installing -- do not interrupt ...
/home/josh/.puppetlabs/etc/code/environments/production/modules
└─┬ puppetlabs-apt (v9.0.0)
  └── puppetlabs-stdlib (v8.1.0)
$ bundle exec puppet module uninstall puppetlabs-stdlib --force
Notice: Preparing to uninstall 'puppetlabs-stdlib' ...
Removed 'puppetlabs-stdlib' (v8.1.0) from /home/josh/.puppetlabs/etc/code/environments/production/modules
$ bundle exec puppet module list                    
Warning: Missing dependency 'puppetlabs-stdlib':
  'puppetlabs-apt' (v9.0.0) requires 'puppetlabs-stdlib' (>= 4.16.0 < 9.0.0)
/home/josh/.puppetlabs/etc/code/environments/production/modules
├── puppet-vault_lookup (v0.2.0)
└── puppetlabs-apt (v9.0.0)
/home/josh/.puppetlabs/etc/code/modules (no modules installed)
/opt/puppetlabs/puppet/modules (no modules installed)
$ bundle exec puppet module list --render-as json
{"environment":"production","modules_by_path":{"/home/josh/.puppetlabs/etc/code/environments/production/modules":["Module apt(/home/josh/.puppetlabs/etc/code/environments/production/modules/apt)","Module vault_lookup(/home/josh/.puppetlabs/etc/code/environments/production/modules/vault_lookup)"],"/home/josh/.puppetlabs/etc/code/modules":[],"/opt/puppetlabs/puppet/modules":[]}}
{noformat}

Josh Cooper (Jira)

unread,
Aug 24, 2022, 7:33:01 PM8/24/22
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Aug 24, 2022, 7:35:01 PM8/24/22
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Aug 24, 2022, 7:57:01 PM8/24/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Release Notes: Enhancement
Release Notes Summary: puppet module list --render-as json now includes information about unmet dependencies.

Josh Cooper (Jira)

unread,
Aug 24, 2022, 7:59:03 PM8/24/22
to puppe...@googlegroups.com

Parker Leach (Jira)

unread,
Sep 12, 2022, 12:27:01 PM9/12/22
to puppe...@googlegroups.com
Parker Leach updated an issue
Change By: Parker Leach
Labels: docs_reviewed faces puppet rendering
Reply all
Reply to author
Forward
0 new messages