V2 is live

170 views
Skip to first unread message

James Cammarata

unread,
Jun 1, 2015, 9:18:44 PM6/1/15
to ansible...@googlegroups.com, ansibl...@googlegroups.com
Hi all, the transition on devel to the v2 codebase is complete. If you run into any problems and want to switch back to using the old v1 codebase from a git checkout, simply source the hacking script in the v1 directory instead:

$ . v1/hacking/env-setup

As always if and when you find any bugs, you can either open an issue directly on Github or ping us on the ansible-devel mailing list or in #ansible-devel on Freenode.

Thanks!

James Cammarata
Director, Ansible Core Engineering
github: jimi-c

jhawkesworth

unread,
Jun 2, 2015, 4:10:49 AM6/2/15
to ansibl...@googlegroups.com, ansible...@googlegroups.com
Congratulations on reaching this milestone.

Jon

Bob Tanner

unread,
Jun 4, 2015, 1:55:42 AM6/4/15
to ansible...@googlegroups.com, ansibl...@googlegroups.com
Before I pollute the issue tracker, cannot get v1 code to source properly.


$ git show
commit 0826106441d15820d086c1c9eaf6242aa80e4406
Author: Brian Coca <**snip**@gmail.com>
Date:   Wed Jun 3 22:19:26 2015 -0400

$ ansible --version
ansible 2.0.0 (devel 0826106441) last updated 2015/06/03 21:55:07 (GMT -500)
  lib/ansible/modules/core: (detached HEAD b138411671) last updated 2015/06/03 00:37:46 (GMT -500)
  lib/ansible/modules/extras: (detached HEAD 1276420a3a) last updated 2015/06/03 00:37:50 (GMT -500)
  v1/ansible/modules/core: (detached HEAD f8d8af17cd) last updated 2015/06/03 00:37:54 (GMT -500)
  v1/ansible/modules/extras: (detached HEAD 495ad450e5) last updated 2015/06/03 00:37:58 (GMT -500)
  configured module search path = None

$ source v1/hacking/env-setup
python: can't open file 'setup.py': [Errno 2] No such file or directory

Setting up Ansible to run out of checkout...

Problem is in gen_egg_info(). $ANSIBLE_HOME is set to /path/ansible/v1 but the setup.py is in /path/ansible.

I just copied the setup.py into v1 and the source works.

But I don't know if that is the right solution or the right way to solve the problem.

And now all my v1 plays throw AttributeError: 'module' object has no attribute 'DEFAULT_SELINUX_SPECIAL_FS'


Matt Martz

unread,
Jun 4, 2015, 1:57:53 PM6/4/15
to ansible...@googlegroups.com, ansibl...@googlegroups.com
Bob,

We just synced the v1 directory with the v1_last branch to resolve the AttributeError.  I don't believe the setup.py issue should affect things, or at least it hasn't affected anything for me.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d2423b08-68c5-49d0-a2de-273dc5c82266%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Matt Martz
@sivel
sivel.net

Bob Tanner

unread,
Jun 4, 2015, 5:56:06 PM6/4/15
to ansible...@googlegroups.com, ansibl...@googlegroups.com
Many do I hate top posting.

Opened an issue before I read your post. https://github.com/ansible/ansible/issues/11171

Still getting:

$ source v1/hacking/env-setup
python: can't open file 'setup.py': [Errno 2] No such file or directory

But my v1 playbooks and plays are working now.

Toshio Kuratomi

unread,
Jun 5, 2015, 10:33:22 AM6/5/15
to ansible...@googlegroups.com


On Jun 4, 2015 2:56 PM, "Bob Tanner" <basicth...@gmail.com> wrote:
>
> Many do I hate top posting.
>
> Opened an issue before I read your post. https://github.com/ansible/ansible/issues/11171
>
> Still getting:
>
> $ source v1/hacking/env-setup
> python: can't open file 'setup.py': [Errno 2] No such file or directory
>
> But my v1 playbooks and plays are working now.
>

When we had v2 in a separate directory I commented out the setup.py stuff from the env-setup script. Not sure if that will work here or not.  The v1/bin/ansible* scripts need to find some egg_info for ansible but chances are it doesn't need to find a specific version.

Maybe the best plan is to copy a generated egg_info tree into the v1 directory and comment out the setup.py call.

-Toshio

Reply all
Reply to author
Forward
0 new messages