Hide Forgot
Description of problem: When I specify the "--oo_version" parameter, and not specify the "--subscription-type" parameter, the tool will guess the version, and it will check resource with the guessed version, but not user specified version in command line. Version-Release number of selected component (if applicable): https://github.com/dobbymoodge/openshift-extras How reproducible: always Steps to Reproduce: 1.register to OpenShift High Touch beta subscription with rhsm. 2.enable the node repo #subscription-manager repos --enable=rhel-6-server-ose-2-beta-node-rpms 3.configure the repo.ini as follow # vim etc/repos.ini <--snip--> [preferences] preferred_version = 2.0beta preferred_subscription = rhn <--snip--> 4.check the resource #./oo-admin-yum-validator -r node -p -o 1.2 Actual results: Output: <--snip--> The following OpenShift Enterprise repositories conflict with the detected or specified product version. To prevent package conflicts, disable these repositories by running these commands: # subscription-manager repos --disable=rhel-server-ose-1.2-node-6-rpms The following RHN Classic or RHN Satellite-managed OpenShift Enterprise repositories conflict with the detected or specified product version. To prevent package conflicts, disable these repositories by making the following modifications to /etc/yum/pluginconf.d/rhnplugin.conf Set enabled=0 in the [rhel-x86_64-server-6] section The required OpenShift Enterprise repositories are disabled: <--snip--> The tool uses the version it guesses Expected results: The tool should use the version that the user specify, the priority of the version/subscription user specify should be higher than the tool guesses. Additional info:
Addressed in https://github.com/openshift/openshift-extras/pull/210 Thanks!
Changes have been merged into master: https://github.com/openshift/openshift-extras/tree/master
check it on a machine that we have installed broker on it. it has repos as follow: rhel-6-server-cf-tools-1-rpms rhel-6-server-ose-2-beta-infra-rpms rhel-6-server-ose-2-beta-rhc-rpms rhel-6-server-rhev-agent-rpms rhel-6-server-rpms rhel-server-rhscl-6-rpms 1.configure the repos.ini as follow: # vim etc/repos.ini [preferences] preferred_version = 2.0beta preferred_subscription = rhsm 2.check the resource # ./oo-admin-yum-validator -r node -o 2.0 If this system will be providing the JBossEAP cartridge, re-run this command with the --role=node-eap argument Detected OpenShift Enterprise repository subscription managed by Red Hat Subscription Manager. The following OpenShift Enterprise repositories conflict with the detected or specified product version. To prevent package conflicts, disable these repositories by running these commands: # subscription-manager repos --disable=rhel-6-server-ose-2-beta-infra-rpms # subscription-manager repos --disable=rhel-6-server-ose-2-beta-rhc-rpms Please re-run this tool after making any recommended repairs to this system the tool uses the version user specify. check subscription with the same env ./oo-admin-yum-validator -r node -s rhn -p If this system will be providing the JBossEAP cartridge, re-run this command with the --role=node-eap argument Detected OpenShift Enterprise version 2.0beta Please re-run this tool after making any recommended repairs to this system the tool find the right version, and user have specify the subscription, but the tool exit without checking resource.
Addressed in https://github.com/openshift/openshift-extras/pull/215
check on https://github.com/openshift/openshift-extras/ 1.register to OpenShift High Touch beta subscription with rhsm. 2.enable the node repo #subscription-manager repos --enable=rhel-6-server-ose-2-beta-infra-rpms 3.install yum-plugin-priorities.noarch #yum install yum-plugin-priorities.noarch 4.configure the repos.ini as follow: # vim etc/repos.ini <--snip--> [preferences] preferred_version = 2.0beta preferred_subscription = rhsm 4.check resource as follow command. # ./oo-admin-yum-validator -r node -r node-eap -s rhn Detected OpenShift Enterprise version 2.0beta Please re-run this tool after making any recommended repairs to this system Now, the tool find the correct version, and the user specify the subscription. but the tool doesn't check resource
This should (finally) be handled in https://github.com/openshift/openshift-extras/pull/216
check on https://github.com/openshift/openshift-extras/ 1.register to OpenShift High Touch beta subscription with rhsm. 2.enable the node repo #subscription-manager repos --enable=rhel-6-server-ose-2-beta-node-rpms 3.check resource # ./oo-admin-yum-validator -r node -s rhn -p If this system will be providing the JBossEAP cartridge, re-run this command with the --role=node-eap argument Detected OpenShift Enterprise version 2.0beta The following OpenShift Enterprise repositories conflict with the detected or specified product version. To prevent package conflicts, disable these repositories by running these commands: # subscription-manager repos --disable=rhel-6-server-rpms # subscription-manager repos --disable=rhel-server-rhscl-6-rpms # subscription-manager repos --disable=rhel-6-server-ose-2-beta-node-rpms The required OpenShift Enterprise repositories are missing: rhel-x86_64-server-6-beta rhel-x86_64-server-6-rhscl-1 rhel-x86_64-server-6 rhel-x86_64-server-6-ose-2-node-beta jb-ews-2-x86_64-server-6-rpm <--snip-->