On Mon, Jul 29, 2013 at 7:16 AM, harryxiyou <[email protected]> wrote:

> On Mon, Jul 29, 2013 at 11:56 AM, harryxiyou <[email protected]> wrote:
> > Hi all,
> >
> > root@node0:~/workshop4/ganeti# gnt-node remove node1.harrycluster.com
> > Failure: command execution error:
> > global name 'os' is not defined
> >
>
> root@node0:~/workshop4/ganeti# gnt-node remove -d node1
> 2013-07-29 01:14:52,660: gnt-node remove pid=10371 cli:2563 INFO
> Command line: gnt-node remove -d node1
> 999 Enter Removenode.
>
> 2013-07-29 01:14:53,923: gnt-node remove pid=10371 cli:2570 ERROR
> Error during command processing
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.7/dist-packages/ganeti/cli.py", line
> 2566, in GenericMain
>     result = func(options, args)
>   File "/usr/local/lib/python2.7/dist-packages/ganeti/client/gnt_node.py",
> line 590, in RemoveNode
>     SubmitOpCode(op, opts=opts)
>   File "/usr/local/lib/python2.7/dist-packages/ganeti/cli.py", line
> 2286, in SubmitOpCode
>     reporter=reporter)
>   File "/usr/local/lib/python2.7/dist-packages/ganeti/cli.py", line
> 2265, in PollJob
>     return GenericPollJob(job_id, _LuxiJobPollCb(cl), reporter)
>   File "/usr/local/lib/python2.7/dist-packages/ganeti/cli.py", line
> 2087, in GenericPollJob
>     errors.MaybeRaise(msg)
>   File "/usr/local/lib/python2.7/dist-packages/ganeti/errors.py", line
> 526, in MaybeRaise
>     raise errcls(*args)
> OpExecError: global name 'os' is not defined
> Failure: command execution error:
> global name 'os' is not defined
>
>
>
Given that it is an error in your code, I cannot be 100% sure, but it looks
like you used a function from the "os" library but you forgot to import it.

But this is definitely something you should be able to figure out on your
own.

Michele


-- 
Google Germany GmbH
Dienerstr. 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Christine Elizabeth Flores

Reply via email to