Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1711873

Summary: RFE for offline installation of RHV Metrics Store using Red Hat Satellite
Product: Red Hat Enterprise Virtualization Manager Reporter: Gajanan <gchakkar>
Component: ovirt-engine-metricsAssignee: Shirly Radco <sradco>
Status: CLOSED ERRATA QA Contact: Guilherme Santos <gdeolive>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: achareka, emarcus, lleistne, mgoldboi, nashok, pelauter, rgolan, rhv-bugzilla-bot, rmeggins, sradco
Target Milestone: ovirt-4.3.8-1Keywords: FutureFeature, ZStream
Target Release: 4.3.8Flags: emarcus: needinfo-
lsvaty: testing_plan_complete-
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: ovirt-engine-metrics-1.3.6.1 Doc Type: Enhancement
Doc Text:
Starting with this release, the Red Hat Virtualization Metrics Store can be installed on an isolated environment using Red Hat Satellite.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-13 15:43:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Metrics RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1795564    
Bug Blocks: 1783900, 1804117    

Description Gajanan 2019-05-20 09:48:01 UTC
#################  RFE REQUEST  ################# 

1. Proposed title of this feature request

Feature Request for Offline installation of RHV Metric Store 


3. What is the nature and description of the request ?

- We would like request install metrics store vm on disconnected/offline mode.
- This is due to ours environment (financial sector industry) no internet access on and online mode will failed the installation metrics store vm 
 

4. Why does the customer need this? (List the business requirements here)

- online mode install metrics store vm will failed due to no internet access (unable to pull docker image and rpm from internet) on ours environment (financial sector industry).

5. How would the customer like to achieve this? (List the functional requirements here)

> Customer mentioned below

~~~
- kindly provide us the step manually download necessary docker images and rpm packages
- we will create local repo and private registry on RHV manager to install metrics store vm 
~~~
 
My thoughts:
~~~
  - I think there cloud be clear and precise steps to achieve the offline installation, may be creating a local repo and private registry after which we can run playbooks which will use this local repo and private registry to perform the installation of the RHV Metric Store. 
 
  - Or first perform the OCP 3.11 offline installation : [https://docs.openshift.com/container-platform/3.11/install/disconnected_install.html] and further use playbooks to perform the installation and configurations for the RHV Metric Store which will install the logging project and install fluentd and collectd services and configurations on the host and rhv-m
~~~


6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.

> ok no issue, i will provide feedback and results.


7. Is there already an existing RFE upstream or in Red Hat Bugzilla?

8. Does the customer have any specific timeline dependencies and which release would they like to target ?


- As soon as possible, we would like to perform offline install metrics store VM on production environment by june 2019 


9. Is the sales team involved in this request and do they have any additional input?

10. List any affected packages or components. 

> RHV Metric Store

11. Would the customer be able to assist in testing this functionality if implemented? 

> Yes

Comment 3 Roy Golan 2019-05-26 06:56:06 UTC
Please see this document for proxying all access of docker - https://docs.openshift.com/container-platform/3.11/install_config/http_proxies.html

I think it will help the IT to create a solution where their custom registry will have internet access while OCP will proxy every pull request to it.

Comment 16 Shirly Radco 2020-01-12 12:52:51 UTC
*** Bug 1711029 has been marked as a duplicate of this bug. ***

Comment 17 Shirly Radco 2020-01-12 12:53:39 UTC
*** Bug 1783900 has been marked as a duplicate of this bug. ***

Comment 18 Guilherme Santos 2020-01-24 01:56:40 UTC
Verified on:
ovirt-engine-metrics-1.3.6.2-1.el7ev.noarch
ovirt-engine-4.3.8.2-0.4.el7.noarch

Steps:
1. Get a disconnected environment:
  1a. SSH on machine hosting satellite and comment, or delete, forwaders on /etc/named/options.conf to not resolve any DNS query outside the LAN 
  1b. On satellite GUI, configure the subnets on ifrastructure tab, setting the DNS to satellite machine IP

2. Get the required satellite env for metrics/openshift
  2a. On satellite GUI, create a product (Content tab -> Products)
  2b. Add openshit repositories (for images and packages) in the created product.
  2c. Synchronyze the repositories
  2d. Assign the product to a subscription
  2e. Create two hosts (for metrics-store-installation and master0 vms) and assign them static IP addresses and arbitrary MAC Addresses, within the MAC range. Note that the host for master0 should be named following the master-<suffix>0 pattern, so it matches the master0 vm hostname. 

3. Install metrics
  3a. Follow the tutorial (https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.3/html/metrics_store_installation_guide/installing_metrics_store) to install metrics normally, however using metrics-store-config-satellite.yml.example and secure_vars_satellite.yaml.example files instead of usual metrics-store-config.yml.example and secure_vars.yml.example ones.
  3b. Fill the files considering satellite desired subnet information (on GUI, infrastructure tab -> sunbets)
  3c. Finishes the installation normally following the tutorial

Results:
metrics sucessfully installed and configured in a disconnected environment

Observation:
When deploying openshift on metrics-store-installion vm, host entry weren't automatically added to /etc/hosts and deployment failed in my tries. If the host entry is manually added before running the playbook, the installation finishes sucessfully as expected.
Not sure if it may be due a bug or something on my env, so I rather take this obs in the case of one faces same situation.

Comment 20 Guilherme Santos 2020-01-28 10:48:34 UTC
Created a bugzilla (https://bugzilla.redhat.com/show_bug.cgi?id=1795564) for the bug found on this offline installation.
Work around for this bug is to manually set rhsub_orgid on /root/vars.yaml before running the step 2 on item 2.3 of the tutorial (https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.3/html/metrics_store_installation_guide/installing_metrics_store)

Comment 23 Guilherme Santos 2020-01-29 09:06:54 UTC
Reverified on:
ovirt-engine-metrics-1.3.6.4-1.el7ev.noarch

Steps:
1. Same as comment #18

Results
metrics sucessfully installed and configured in a disconnected environment, no work around needed

Comment 28 Shirly Radco 2020-02-13 14:21:40 UTC
*** Bug 1783900 has been marked as a duplicate of this bug. ***

Comment 29 errata-xmlrpc 2020-02-13 15:43:16 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/RHBA-2020:0504