migtools / pvc-migrate

Standalone PVC migration
Apache License 2.0
5 stars 13 forks source link

Stage 3 - Errors installing stunnel #138

Open roleymoley opened 4 years ago

roleymoley commented 4 years ago

Running 1.1.2 we are experiencing the following error

fatal: [localhost -> d-worker05.in.appcanvas.net]: FAILED! => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    },
    "changed": true,
    "changes": {
        "installed": [
            "stunnel"
        ],
        "updated": []
    },
    "invocation": {
        "module_args": {
            "allow_downgrade": false,
            "autoremove": false,
            "bugfix": false,
            "conf_file": null,
            "disable_excludes": null,
            "disable_gpg_check": false,
            "disable_plugin": [],
            "disablerepo": [],
            "download_dir": null,
            "download_only": false,
            "enable_plugin": [],
            "enablerepo": [],
            "exclude": [],
            "install_repoquery": true,
            "install_weak_deps": true,
            "installroot": "/",
            "list": null,
            "lock_timeout": 30,
            "name": [
                "stunnel"
            ],
            "releasever": null,
            "security": false,
            "skip_broken": false,
            "state": "latest",
            "update_cache": false,
            "update_only": false,
            "use_backend": "auto",
            "validate_certs": true
        }
    },
    "msg": "https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/rhs-client/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden\nTrying other mirror.\nTo address this issue please refer to the below knowledge base article\n\nhttps://access.redhat.com/solutions/69319\n\nIf above article doesn't help to resolve this issue please open a ticket with Red Hat Support.\n\nhttps://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/fast-datapath/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden\nTrying other mirror.\nhttps://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/ansible/2.6/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden\nTrying other mirror.\nhttps://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/extras/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden\nTrying other mirror.\nhttps://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/ose/3.11/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden\nTrying other mirror.\nhttps://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden\nTrying other mirror.\nhttps://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/Packages/s/stunnel-4.56-6.el7.x86_64.rpm: [Errno 14] HTTPS Error 403 - Forbidden\nTrying other mirror.\n\n\nError downloading packages:\n  stunnel-4.56-6.el7.x86_64: [Errno 256] No more mirrors to try.\n\n",
    "rc": 1,
    "results": [
        "Loaded plugins: amazon-id, product-id, rhui-lb, search-disabled-repos,\n              : subscription-manager\nResolving Dependencies\n--> Running transaction check\n---> Package stunnel.x86_64 0:4.56-6.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package        Arch          Version           Repository                 Size\n================================================================================\nInstalling:\n stunnel        x86_64        4.56-6.el7        rhel-7-server-rpms        146 k\n\nTransaction Summary\n================================================================================\nInstall  1 Package\n\nTotal download size: 146 k\nInstalled size: 308 k\nDownloading packages:\n"
    ]
}
Read vars_file 'vars/run-rsync.yml'
Read vars_file 'vars/defaults.yml'
Read vars_file 'vars/run-rsync.yml'
Read vars_file 'vars/defaults.yml'

This then leads into this error

<d-worker05.in.appcanvas.net> (0, b'', b'')
fatal: [localhost -> d-worker05.in.appcanvas.net]: FAILED! => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    },
    "changed": false,
    "invocation": {
        "module_args": {
            "daemon_reexec": false,
            "daemon_reload": false,
            "enabled": null,
            "force": null,
            "masked": null,
            "name": "stunnel",
            "no_block": false,
            "scope": null,
            "state": "stopped",
            "user": null
        }
    },
    "msg": "Could not find the requested service stunnel: host"
}
Read vars_file 'vars/run-rsync.yml'
Read vars_file 'vars/defaults.yml'

It stands to reason they are related and if i had to take an educated guess is due to the presence of proxy devices on our network path which if the process isn't aware of will probably cause this to be unable to connect

alaypatel07 commented 4 years ago

Can you please try to ssh into one of the source nodes and run sudo yum install stunnel?

It stands to reason they are related and if i had to take an educated guess is due to the presence of proxy devices on our network path which if the process isn't aware of will probably cause this to be unable to connect

Can you also get on the node run the following steps:

  1. edit the /etc/yum.conf to add proxy=http://<your-proxy-IP-address>
  2. run $ sudo yum clean metadata
  3. install stunnel, $ sudo yum install stunnel