Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1786283

Summary: Enable AzureRM plugin does not refresh the hammer cache
Product: Red Hat Satellite Reporter: vijsingh
Component: Compute Resources - AzureAssignee: Aditi Puntambekar <apuntamb>
Status: CLOSED ERRATA QA Contact: vijsingh
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: apuntamb, egolov, kgaikwad, mshira, pcreech
Target Milestone: 6.7.0Keywords: Regression, Triaged
Target Release: UnusedFlags: mshira: needinfo+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-hammer_cli_foreman_azure_rm-0.1.2-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-14 13:28:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1775890    

Description vijsingh 2019-12-24 07:57:36 UTC
Description of problem:

Enable AzureRM plugin does not refresh the hammer cache and because of it no hammer commands/options available for AzureRM.

Version-Release number of selected component (if applicable):

@Satellite 6.7.0 snap 7.0

How reproducible:

Always

Steps to Reproduce:
______________________________________________
[root@sat ~]# satellite-installer --enable-foreman-plugin-azure --enable-foreman-cli-azure
Package versions are locked. Continuing with unlock.
Installing             Done                                               [100%] [..........................................................................................]
  Success!
  * Satellite is running at https://sat.example.com

  * To install an additional Capsule on separate machine continue by running:

          capsule-certs-generate --foreman-proxy-fqdn "$CAPSULE" --certs-tar "/root/$CAPSULE-certs.tar"

  * To upgrade an existing 6.6 Capsule to 6.7:
          Please see official documentation for steps and parameters to use when upgrading a 6.6 Capsule to 6.7.

  The full log is at /var/log/foreman-installer/satellite.log
Package versions are being locked.
[root@sat ~]# hammer compute-resource create --help|grep -i azure
 --tenant TENANT                             For RHEL OpenStack Platform and AzureRM only
[root@sat ~]# date
Mon Dec 23 01:28:11 EST 2019
[root@sat ~]# hostname
sat.example.com
[root@sat ~]# hammer compute-resource create --help|grep -i azure
 --tenant TENANT                             For RHEL OpenStack Platform and AzureRM only
[root@sat ~]# date
Mon Dec 23 01:29:49 EST 2019
[root@sat ~]# [A
-bash: [A: command not found
[root@sat ~]# hammer compute-resource create --help|grep -i azure
 --tenant TENANT                             For RHEL OpenStack Platform and AzureRM only
[root@sat ~]# date
Mon Dec 23 01:30:59 EST 2019

______________________________________________

Actual results:

 No hammer commands/options available for AzureRM

Expected results:
 
 
 Enable AzureRM plugin should refresh the hammer cache and related hammer commands/options avialable
 

Additional info:

 More looks a regression on 'Sat 6.7.0 Snap 7.0' as same was working on snap 6.0 https://bugzilla.redhat.com/show_bug.cgi?id=1775889#c10

Comment 7 Shira Maximov 2019-12-30 08:30:03 UTC
@Vijay,
This is the expected behavior of hammer as far as I know.

Comment 15 errata-xmlrpc 2020-04-14 13:28:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:1454