Project

General

Profile

Bug #27665

hammer srpm list => Error: lifecycle_environment not found.

Added by Vijay Singh almost 3 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

hammer srpm list => Error: lifecycle_environment not found.

Steps:

1. Upload SRPM package to repo.
2. Try to list it as below through hammer:

[root@qe-foreman-rhel7 pkgs]# hammer srpm list --lifecycle-environment 1
Error: Could not find organization, please set one of options --organization, --organization-label, --organization-id.
[root@qe-foreman-rhel7 pkgs]# hammer srpm list --lifecycle-environment 1 --organization-id 1
Error: lifecycle_environment not found.
[root@qe-foreman-rhel7 pkgs]# 

[root@qe-foreman-rhel7-tier1 pkgs]# hammer lifecycle-environment list --organization-id 1
---|---------|------
ID | NAME    | PRIOR
---|---------|------
1  | Library |      
---|---------|------
[root@qe-foreman-rhel7-tier1 pkgs]#

Related issues

Related to Katello - Tracker #27539: [Tracker] SRPM IssuesNew

History

#1 Updated by Vijay Singh almost 3 years ago

#2 Updated by Samir Jha over 2 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.14.0

#3 Updated by Chris Roberts over 2 years ago

  • Assignee deleted (Chris Roberts)
  • Category set to Hammer

This is a current issue with not just srpms but hammer/katello in general:

[vagrant@centos7-katello-devel ~]$ hammer srpm list --lifecycle-environment "Library"
Error: Could not find organization, please set one of options --organization, --organization-label, --organization-id.
[vagrant@centos7-katello-devel ~]$ hammer package list --lifecycle-environment "Library"
Error: Could not find organization, please set one of options --organization, --organization-label, --organization-id.

Outside of the scope of the srpm feature

#4 Updated by Chris Roberts over 2 years ago

  • Target version changed from Katello 3.14.0 to Katello Backlog

Also available in: Atom PDF