Code Monkey home page Code Monkey logo

Comments (4)

oravirt avatar oravirt commented on July 20, 2024

Ok, I’ll have a look

from vagrant-vbox-rac.

programetica avatar programetica commented on July 20, 2024

I upgraded the rhel610 image to use python 3.4 because it has Jenja2, but didn't know Ansible requires a minimum of python 3.5 if you're using python 3. For some reason python 3.6.3 is being a pain to install.
……………………………………………………………………………………………………………………………………………………

==> racnode-dc1-1: Running provisioner: ansible_local...
Vagrant has automatically selected the compatibility mode '2.0'
according to the Ansible version installed (2.6.16).

Alternatively, the compatibility mode can be specified in your Vagrantfile:
https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode

racnode-dc1-1: Running ansible-playbook...

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
fatal: [racnode-dc1-1]: FAILED! => {"changed": false, "msg": "Ansible requires a minimum of Python2 version 2.6 or Python3 version 3.5. Current version: 3.4.10 (default, Apr 8 2019, 02:18:20) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]"}
fatal: [racnode-dc1-2]: FAILED! => {"changed": false, "msg": "Ansible requires a minimum of Python2 version 2.6 or Python3 version 3.5. Current version: 3.4.10 (default, Apr 8 2019, 02:18:20) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]"}
to retry, use: --limit @/vagrant/base-provision/init.retry

PLAY RECAP *********************************************************************
racnode-dc1-1 : ok=0 changed=0 unreachable=0 failed=1
racnode-dc1-2 : ok=0 changed=0 unreachable=0 failed=1

from vagrant-vbox-rac.

programetica avatar programetica commented on July 20, 2024

I upgraded to python3.5 on the RHEL610 box and added the CENTOS 6.10 repository for the necessary dependencies and saved this version as a local vagrant box. After including it in the host.yml file and running it for 11.2.0.4, I got the following error:

..................................................................................................................................................................

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
ok: [racnode-dc1-1]
ok: [racnode-dc1-2]

TASK [init : Install packages] *************************************************

failed: [racnode-dc1-2] (item=ntp) => {"changed": false, "item": "ntp", "module_stderr": "Shared connection to 192.168.7.11 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "/tmp/ansible_smf9xb4p/ansible_module_yum.py", line 285, in \r\n from ansible.module_utils.urls import fetch_url\r\n File "", line 968, in _find_and_load\r\n File "", line 957, in _find_and_load_unlocked\r\n File "", line 664, in _load_unlocked\r\n File "", line 634, in _load_backward_compatible\r\n File "/tmp/ansible_smf9xb4p/ansible_modlib.zip/ansible/module_utils/urls.py", line 345, in \r\nAttributeError: module 'urllib.request' has no attribute 'HTTPSHandler'\r\n", "msg": "MODULE FAILURE", "rc": 1}

failed: [racnode-dc1-1] (item=ntp) => {"changed": false, "item": "ntp", "module_stderr": "Shared connection to 192.168.7.10 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "/tmp/ansible_27fko96v/ansible_module_yum.py", line 285, in \r\n from ansible.module_utils.urls import fetch_url\r\n File "", line 968, in _find_and_load\r\n File "", line 957, in _find_and_load_unlocked\r\n File "", line 664, in _load_unlocked\r\n File "", line 634, in _load_backward_compatible\r\n File "/tmp/ansible_27fko96v/ansible_modlib.zip/ansible/module_utils/urls.py", line 345, in \r\nAttributeError: module 'urllib.request' has no attribute 'HTTPSHandler'\r\n", "msg": "MODULE FAILURE", "rc": 1}

failed: [racnode-dc1-2] (item=dnsmasq) => {"changed": false, "item": "dnsmasq", "module_stderr": "Shared connection to 192.168.7.11 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "/tmp/ansible_c2kz_pvw/ansible_module_yum.py", line 285, in \r\n from ansible.module_utils.urls import fetch_url\r\n File "", line 968, in _find_and_load\r\n File "", line 957, in _find_and_load_unlocked\r\n File "", line 664, in _load_unlocked\r\n File "", line 634, in _load_backward_compatible\r\n File "/tmp/ansible_c2kz_pvw/ansible_modlib.zip/ansible/module_utils/urls.py", line 345, in \r\nAttributeError: module 'urllib.request' has no attribute 'HTTPSHandler'\r\n", "msg": "MODULE FAILURE", "rc": 1}

failed: [racnode-dc1-1] (item=dnsmasq) => {"changed": false, "item": "dnsmasq", "module_stderr": "Shared connection to 192.168.7.10 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "/tmp/ansible__ab6di8a/ansible_module_yum.py", line 285, in \r\n from ansible.module_utils.urls import fetch_url\r\n File "", line 968, in _find_and_load\r\n File "", line 957, in _find_and_load_unlocked\r\n File "", line 664, in _load_unlocked\r\n File "", line 634, in _load_backward_compatible\r\n File "/tmp/ansible__ab6di8a/ansible_modlib.zip/ansible/module_utils/urls.py", line 345, in \r\nAttributeError: module 'urllib.request' has no attribute 'HTTPSHandler'\r\n", "msg": "MODULE FAILURE", "rc": 1}
to retry, use: --limit @/vagrant/base-provision/init.retry

PLAY RECAP *********************************************************************
racnode-dc1-1 : ok=1 changed=0 unreachable=0 failed=1
racnode-dc1-2 : ok=1 changed=0 unreachable=0 failed=1

..................................................................................................................................................

I did some research and it doesn't look like there are any easy fixes that I could see for this. All of the links were either very vague or very involved.

from vagrant-vbox-rac.

programetica avatar programetica commented on July 20, 2024

Some of this is explained here: https://community.oracle.com/thread/3976294


Adding Clusterware entries to inittab

RHEL 7 is using upstart, not inittab anymore. I am pretty sure that the installer should recognize that automatically. For some reason it does not recognize it in your case. So the OHASD is being added to inittab, but this will never ever lead to an automated start of OHASD. In the first place, you can try to start OHASD manually and then create your own upstart configuration. Nevertheless you should try to find the reason why the installer is not using upstart.



Below output indicates that you have opted to run the "root" related scripts automatically as a part of installation of GI.

Adding Clusterware entries to inittab

ohasd failed to start

Failed to start the Clusterware. Last 20 lines of the alert log follow:

2016-09-28 08:53:42.739:

[client(5107)]CRS-2101:The OLR was formatted using version 3.

The installer attempted to run the "root.sh" and failed to start the OHAS daemon. As the installer is not able to progress due to failure of root.sh script.

The previous release of Oracle Linux / RHEL uses initd for running the processes and restarting them.

Where as Oracle Linux / RHEL7 expects to use systemd rather than initd, and root.sh script doesn’t handle this change behavior currently

This issue has been investigated in the below bug:

Bug 18370031 - RC SCRIPTS (/ETC/RC.D/RC.* , /ETC/INIT.D/* ) ON OL7 FOR CLUSTERWARE

Refer below MOS document for the resolution:

Install of Clusterware fails while running root.sh on OL7 - ohasd fails to start (Doc ID 1959008.1)

You need kill the OUI screen, apply patch for bug 18370031, or apply latest GI PSU and then proceed with rerunning the root.sh script.

After execution of root.sh script, refer below MOS document to complete the post root.sh activities.

How to Complete Grid Infrastructure Configuration Assistant(Plug-in) if OUI is not Available (Doc ID 1360798.1)

If you are still not able to proceed, consider creating SR with Oracle Support.


Please check Installation walk-through - Oracle Grid/RAC 11.2.0.4 on Oracle Linux 7 (Doc ID 1951613.1)

from vagrant-vbox-rac.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.