ImportError: No module named doc

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

ImportError: No module named doc

zphj1987
hello everyone:
i install vsm v2.1 in centos 7.2  and when i run the vsm web i find some problem in my httpd error.log
it is like that

[Tue Feb 23 16:28:09.547161 2016] [:error] [pid 26465] [remote 192.168.0.208:264] Traceback (most recent call last):
[Tue Feb 23 16:28:09.547223 2016] [:error] [pid 26465] [remote 192.168.0.208:264]   File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 170, in __call__
[Tue Feb 23 16:28:09.547678 2016] [:error] [pid 26465] [remote 192.168.0.208:264]     self.load_middleware()
[Tue Feb 23 16:28:09.547729 2016] [:error] [pid 26465] [remote 192.168.0.208:264]   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 50, in load_middleware
[Tue Feb 23 16:28:09.548079 2016] [:error] [pid 26465] [remote 192.168.0.208:264]     mw_class = import_string(middleware_path)
[Tue Feb 23 16:28:09.548118 2016] [:error] [pid 26465] [remote 192.168.0.208:264]   File "/usr/lib/python2.7/site-packages/django/utils/module_loading.py", line 26, in import_string
[Tue Feb 23 16:28:09.548381 2016] [:error] [pid 26465] [remote 192.168.0.208:264]     module = import_module(module_path)
[Tue Feb 23 16:28:09.548421 2016] [:error] [pid 26465] [remote 192.168.0.208:264]   File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
[Tue Feb 23 16:28:09.548491 2016] [:error] [pid 26465] [remote 192.168.0.208:264]     __import__(name)
[Tue Feb 23 16:28:09.548548 2016] [:error] [pid 26465] [remote 192.168.0.208:264] ImportError: No module named doc
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named doc

ywang19
Administrator
We haven't got chance to run VSM on centos 7.2 yet, and the stack trace suggests it's django package issue.
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named doc

zphj1987
thank you for your replay!  i will run it  on other system.
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named doc

Syahrul Sazli Shaharir
Hi,

I faced the same issue (after some tweakings on install.sh to get it to complete the installation on CentOS 7.2 environment).

Are there any workarounds / solutions yet for this django @ CentOS 7.2 issue? If not, that means for now we fallback to centos 6.x on all the ceph hosts to get VSM to work?

Thanks.

--sazli
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named doc

bxzhu
I installed the vsm on centos7.2. It works.
For centos7.X, you should add the epel repo and ceph repo(centos repo default). So that you have three repos.
Did you add the openstack repo by yourself? If you do that, please remove the openstack repo and uninstall some openstack packages or use a clean server to try again.
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named doc

Syahrul Sazli Shaharir
bxzhu: which vsm version did you use - latest release ( v2.1.0-336, binaries or compiled? ) or master?

I retried install.sh on a clean centos 7.2 reinstall, this time without the openstack repos (with only the 3 repositories you mentioned: CentOS-*.repo (default), epel.repo, and ceph.repo), but encountered missing dependencies:-
---> Package vsm.noarch 0:2.1.0-336 will be installed
..... (multiple "Processing dependency" lines)
--> Finished Dependency Resolution
Error: Package: vsm-dashboard-2.1.0-336.noarch (vsmrepo)
           Requires: python-django-horizon
Error: Package: vsm-dashboard-2.1.0-336.noarch (vsmrepo)
           Requires: python-django-openstack-auth
Error: Package: vsm-2.1.0-336.noarch (vsmrepo)
           Requires: python-oslo-config
Error: Package: vsm-dashboard-2.1.0-336.noarch (vsmrepo)
           Requires: python-oslo-config
Error: Package: vsm-dashboard-2.1.0-336.noarch (vsmrepo)
           Requires: python-keystoneclient
Error: Package: vsm-2.1.0-336.noarch (vsmrepo)
           Requires: python-keystoneclient
Error: Package: vsm-2.1.0-336.noarch (vsmrepo)
           Requires: python-cinderclient
Error: Package: vsm-2.1.0-336.noarch (vsmrepo)
           Requires: python-novaclient
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Please advise - thanks.
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named doc

bxzhu
Hi Syahrul Sazli Shaharir,
        I use the latest master version from the github, then pack it by myself.
        What's the command that you run?  Please check the vsm-dep-repo folder under your 2.1.0-336 directory. Is python-django-horizon package or other packages there?
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named doc

Syahrul Sazli Shaharir
Hi bxzhu,

I was using the release version (2.1.0-336), and install.sh couldn't download the dependencies into vsm-dep-repo, probably due to broken links inside the script. I checked https://github.com/01org/vsm-dependencies - the directory layout has been changed, and I couldn't find some of the dependencies listed in rpms.lst (e.g. the openstack-* rpms) there. Perhaps I should use the latest master (with latest rpms.lst)?

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named doc

bxzhu
you should run the command "./install.sh -v 2.0" to install vsm including controller and agent nodes.
I have tried again that the downloading link works.
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named doc

Syahrul Sazli Shaharir
Yes - it works now with -v 2.0 - I missed that in the docs: may I suggest a small correction to it, e.g.:-

"Now we are ready to start the automatic procedure by executing this command line:

./install.sh -u cephuser -v version
where version is the vsm version like 1.1, 2.0."

( version at the end of the command was missing, which led to my mistake )

Thanks! :)
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named doc

Syahrul Sazli Shaharir
btw, I may have missed some other things, but here's the modifications I had to perform on install.sh in order to make the installation complete successfully on my environment:-

install.diff

Thanks.