[openstack-dev] [goal][python3] more updates to the goal tools
Doug Hellmann
doug at doughellmann.com
Fri Aug 17 14:47:23 UTC 2018
I was not able to reproduce the problem. Please test the fix in
https://review.openstack.org/#/c/593068/ to see if that helps.
Which version of Python are you using to run the tools? And on which OS?
Excerpts from Doug Hellmann's message of 2018-08-17 10:30:29 -0400:
> I will work on fixing this today.
>
> Has the designate team agreed to go ahead with their migration, or
> are you still testing the scripts?
>
> Doug
>
> Excerpts from super user's message of 2018-08-17 15:37:03 +0900:
> > Hi Doug,
> >
> > I'm Nguyen Hai. I proposed the python3-first patch set for
> > designate projects. However, I have met this error to designate and
> > designate-dashboard:
> >
> > === ../Output/designate/openstack/designate @ master ===
> >
> > ./tools/python3-first/do_repo.sh ../Output/designate/openstack/designate
> > master 24292
> >
> > ++ cat ../Output/designate/openstack/designate/.gitreview
> > ++ grep project
> > ++ cut -f2 -d=
> > + actual=openstack/designate.git
> > +++ dirname ../Output/designate/openstack/designate
> > ++ basename ../Output/designate/openstack
> > ++ basename ../Output/designate/openstack/designate
> > + expected=openstack/designate
> > + '[' openstack/designate.git '!=' openstack/designate -a
> > openstack/designate.git '!=' openstack/designate.git ']'
> > + git -C ../Output/designate/openstack/designate review -s
> > Creating a git remote called 'gerrit' that maps to:
> > ssh://
> > nguyentrihai at review.openstack.org:29418/openstack/designate.git
> > ++ basename master
> > + new_branch=python3-first-master
> > + git -C ../Output/designate/openstack/designate branch
> > + grep -q python3-first-master
> > + echo 'creating python3-first-master'
> > creating python3-first-master
> > + git -C ../Output/designate/openstack/designate checkout -- .
> > + git -C ../Output/designate/openstack/designate clean -f -d
> > + git -C ../Output/designate/openstack/designate checkout -q origin/master
> > + git -C ../Output/designate/openstack/designate checkout -b
> > python3-first-master
> > Switched to a new branch 'python3-first-master'
> > + python3-first -v --debug jobs update
> > ../Output/designate/openstack/designate
> > determining repository name from .gitreview
> > working on openstack/designate @ master
> > looking for zuul config in
> > ../Output/designate/openstack/designate/.zuul.yaml
> > using zuul config from ../Output/designate/openstack/designate/.zuul.yaml
> > loading project settings from ../project-config/zuul.d/projects.yaml
> > loading project templates from
> > ../openstack-zuul-jobs/zuul.d/project-templates.yaml
> > loading jobs from ../openstack-zuul-jobs/zuul.d/jobs.yaml
> > looking for settings for openstack/designate
> > looking at template 'openstack-python-jobs'
> > looking at template 'openstack-python35-jobs'
> > looking at template 'publish-openstack-sphinx-docs'
> > looking at template 'periodic-stable-jobs'
> > looking at template 'check-requirements'
> > did not find template definition for 'check-requirements'
> > looking at template 'translation-jobs-master-stable'
> > looking at template 'release-notes-jobs'
> > looking at template 'api-ref-jobs'
> > looking at template 'install-guide-jobs'
> > looking at template 'release-openstack-server'
> > filtering on master
> > merging templates
> > adding openstack-python-jobs
> > adding openstack-python35-jobs
> > adding publish-openstack-sphinx-docs
> > adding periodic-stable-jobs
> > adding check-requirements
> > adding release-notes-jobs
> > adding install-guide-jobs
> > merging pipeline check
> > *unhashable type: 'CommentedMap'*
> > *Traceback (most recent call last):*
> > * File
> > "/home/stack/python3-first/goal-tools/.tox/venv/lib/python3.6/site-packages/cliff/app.py",
> > line 402, in run_subcommand*
> > * result = cmd.run(parsed_args)*
> > * File
> > "/home/stack/python3-first/goal-tools/.tox/venv/lib/python3.6/site-packages/cliff/command.py",
> > line 184, in run*
> > * return_code = self.take_action(parsed_args) or 0*
> > * File
> > "/home/stack/python3-first/goal-tools/goal_tools/python3_first/jobs.py",
> > line 531, in take_action*
> > * entry,*
> > * File
> > "/home/stack/python3-first/goal-tools/goal_tools/python3_first/jobs.py",
> > line 397, in merge_project_settings*
> > * up.get(pipeline, comments.CommentedMap()),*
> > * File
> > "/home/stack/python3-first/goal-tools/goal_tools/python3_first/jobs.py",
> > line 362, in merge_pipeline*
> > * if job_name in job_names:*
> > *TypeError: unhashable type: 'CommentedMap'*
> > *Traceback (most recent call last):*
> > * File "/home/stack/python3-first/goal-tools/.tox/venv/bin/python3-first",
> > line 10, in <module>*
> > * sys.exit(main())*
> > * File
> > "/home/stack/python3-first/goal-tools/goal_tools/python3_first/main.py",
> > line 42, in main*
> > * return Python3First().run(argv)*
> > * File
> > "/home/stack/python3-first/goal-tools/.tox/venv/lib/python3.6/site-packages/cliff/app.py",
> > line 281, in run*
> > * result = self.run_subcommand(remainder)*
> > * File
> > "/home/stack/python3-first/goal-tools/.tox/venv/lib/python3.6/site-packages/cliff/app.py",
> > line 402, in run_subcommand*
> > * result = cmd.run(parsed_args)*
> > * File
> > "/home/stack/python3-first/goal-tools/.tox/venv/lib/python3.6/site-packages/cliff/command.py",
> > line 184, in run*
> > * return_code = self.take_action(parsed_args) or 0*
> > * File
> > "/home/stack/python3-first/goal-tools/goal_tools/python3_first/jobs.py",
> > line 531, in take_action*
> > * entry,*
> > * File
> > "/home/stack/python3-first/goal-tools/goal_tools/python3_first/jobs.py",
> > line 397, in merge_project_settings*
> > * up.get(pipeline, comments.CommentedMap()),*
> > * File
> > "/home/stack/python3-first/goal-tools/goal_tools/python3_first/jobs.py",
> > line 362, in merge_pipeline*
> > * if job_name in job_names:*
> > *TypeError: unhashable type: 'CommentedMap'*
> > *+ echo 'No changes'*
> > *No changes*
> > *+ exit 1*
> >
> > On Wed, Aug 8, 2018 at 7:58 AM Doug Hellmann <doug at doughellmann.com> wrote:
> >
> > > Champions,
> > >
> > > I have made quite a few changes to the tools for generating the zuul
> > > migration patches today. If you have any patches you generated locally
> > > for testing, please check out the latest version of the tool (when all
> > > of the changes merge) and regenerate them.
> > >
> > > Doug
> > >
> > > __________________________________________________________________________
> > > OpenStack Development Mailing List (not for usage questions)
> > > Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> > >
More information about the OpenStack-dev
mailing list