[Haizea] unmatching host CPU information between ONE and Haizea
Shi Jin
jinzishuai at gmail.com
Wed Oct 27 15:53:53 CDT 2010
I got it.
The 1.1 branch code still assumes the ONE_AUTH to be the user:password while
the new version assumes a file name. It probably need an update from the
trunk.
[cloudadmin at frontend-dev 1.1]$ diff src/haizea/common/opennebula_xmlrpc.py
../../trunk/src/haizea/common/
2a3
> import os.path
11a13,15
>
> DEFAULT_ONE_AUTH = "~/.one/one_auth"
>
33c37
< return None
---
> one_auth = OpenNebulaXMLRPCClient.DEFAULT_ONE_AUTH
35,36c39,49
< auth = os.environ["ONE_AUTH"]
< user, passw = auth.split(":")
---
> one_auth = os.environ["ONE_AUTH"]
>
> one_auth = os.path.expanduser(one_auth)
>
> if not os.path.exists(one_auth):
> raise Exception("Authorization file %s does not exists" %
one_auth)
>
> f = open(one_auth, "r")
> try:
> line = f.readline().strip()
> user, passw = line.split(":")
37a51,53
> except:
> raise Exception("Authorization file is malformed")
>
On Mon, Oct 25, 2010 at 10:22 AM, Shi Jin <jinzishuai at gmail.com> wrote:
> Thanks. That's now solved.
> However, I am having another problem starting up haizea:
> > ONE_AUTH environment variable is not set or authorization file is
> malformed
>
> I remember this has to do with whether the password is hashed or not in
> OpenNebula.
> The same one_auth file worked on the 1.0 version. What's the Opennebula
> version I should use with 1.1? Thanks.
>
> Shi
> On Sun, Oct 24, 2010 at 9:12 AM, Borja Sotomayor <borja at borjanet.com>wrote:
>
>> Hi,
>>
>> Ah, sorry, the setup.py script is not meant to work in the development
>> version (I update it right before a release, so right now it's bound
>> to skip several files; that is probably the source of the
>> lwf.generators problem). You should just check out the code and set
>> your $PYTHONPATH and $PATH directly into the local copy of the source
>> tree.
>>
>> Cheers!
>> --
>> Borja Sotomayor
>> -Scientific Writer at UChicago's Computation Institute
>> http://people.cs.uchicago.edu/~borja/
>> -Community Manager for the OpenNebula project
>> http://www.opennebula.org/
>> _______________________________________________
>> Haizea mailing list
>> Haizea at mailman.cs.uchicago.edu
>> https://mailman.cs.uchicago.edu/mailman/listinfo/haizea
>>
>
>
>
> --
> Shi Jin, Ph.D.
>
>
--
Shi Jin, Ph.D.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.uchicago.edu/pipermail/haizea/attachments/20101027/b9fefbb2/attachment.htm
More information about the Haizea
mailing list