apache / fluo-muchos

Apache Fluo Muchos
https://fluo.apache.org
Apache License 2.0
26 stars 37 forks source link

Ubuntu 18.04 NoneType object has no attribute verify_config #383

Closed Viv1986 closed 3 years ago

Viv1986 commented 3 years ago

Hi,

everything setuped from article https://github.com/apache/fluo-muchos/blob/main/docs/azure-ubuntu-1804.md

but I get bin/muchos launch -c 123

Traceback (most recent call last): File "/mnt/c/projects/fluo-muchos/lib/main.py", line 95, in main() File "/mnt/c/projects/fluo-muchos/lib/main.py", line 64, in main config.verify_config(action) AttributeError: 'NoneType' object has no attribute 'verify_config'

Viv1986 commented 3 years ago

@karthick-rn could you please help

arvindshmicrosoft commented 3 years ago

Do you have a valid muchos.props file with cluster_type set to azure? The error you describe will occur if there is any invalid cluster type specified. Also, ensure that there are no trailing characters after the azure.

Also, please confirm you have read and executed the regular pre-requisites as in the readme.

Viv1986 commented 3 years ago

@arvindshmicrosoft yes, I set it with big first letter, but problem still there bin/muchos launch -c 123 Traceback (most recent call last): File "/mnt/c/projects/fluo-muchos/lib/main.py", line 95, in main() File "/mnt/c/projects/fluo-muchos/lib/main.py", line 87, in main from muchos.azure import VmssCluster File "/mnt/c/projects/fluo-muchos/lib/muchos/azure.py", line 22, in from azure.common.client_factory import get_client_from_cli_profile ModuleNotFoundError: No module named 'azure'

az version { "azure-cli": "2.17.1", "azure-cli-core": "2.17.1", "azure-cli-telemetry": "1.0.6", "extensions": { "aks-preview": "0.4.17" } }

arvindshmicrosoft commented 3 years ago

Thank you. It looks like you are missing at least the azure module pre-requisite. The easiest way to install these is to execute pip install -r ./lib/requirements.txt within the same Python virtual environment that you set up originally. That will pull down all the required Python libraries. Let us know how it goes.

Viv1986 commented 3 years ago

Nope, not worked also there is no azure module in reqs cat lib/requirements.txt flake8==3.8.0 ansible-lint==4.2.0 ansible==2.9.13 ansible[azure]==2.9.13 nose==1.3.7

karthick-rn commented 3 years ago

Nope, not worked also there is no azure module in reqs cat lib/requirements.txt flake8==3.8.0 ansible-lint==4.2.0 ansible==2.9.13 ansible[azure]==2.9.13 nose==1.3.7

The azure module is there in the second last line. When you run pip install -r ./lib/requirements.txt does that complete successfully or do you see any error? Can you run ansible --version & az --version on Ubuntu and share the output?

Viv1986 commented 3 years ago

az --version azure-cli 2.17.1

core 2.17.1 telemetry 1.0.6

Extensions: aks-preview 0.4.17

ansible --version ansible 2.10.4 config file = /etc/ansible/ansible.cfg

karthick-rn commented 3 years ago

Your Ansible version is 2.10.4, from 2.10 onwards Ansible moved anything that is not deemed as core into a separate ansible-collections repository. Based on which the azure module becomes part of the collections, I'm not sure what additional steps you may need to get this working with 2.10. Hence in the requirements.txt we recommend using 2.9.13. Can you uninstall Ansible 2.10.4 and install 2.9.13 using something like pip install 'ansible[azure]==2.9.13' and once done ensure the version is correct and try the launch step again.

Viv1986 commented 3 years ago

thanks, that thing started work

karthick-rn commented 3 years ago

Great. I assume you now have an Accumulo cluster configured with ADLS Gen2. Let us know if you need any further help? Also, we'll close the issue you opened in the Accumulo community.