Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated package moving (storage) refs #9910 #22

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mcantelon
Copy link
Member

Script for automating moving of packages from one location to another:

  • Get first UPLOADED or MOVING status package in source location (using REST call to SS), ordering results by UUID (to keep query results consistant)
  • If package status is MOVING, do nothing, otherwise initiate move

@Hwesta
Copy link
Contributor

Hwesta commented Jul 5, 2016

Please update the README to describe the new tool.

common/utils.py Outdated
# Open PID file only if it doesn't exist for read/write
f = os.fdopen(os.open(pid_file, os.O_CREAT | os.O_EXCL | os.O_RDWR), 'r+')
except OSError,e:
if logger:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes more sense to assume the logger exists as a module level variable, rather than passed in. Let's define the logger at the top of the file and not pass it as a parameter to the helper functions.

@Hwesta
Copy link
Contributor

Hwesta commented Jul 5, 2016

Looks pretty good! Can you add tests, and verify it works in Python3 as well? I noticed some python2-only syntax.

@hakamine
Copy link
Member

hakamine commented Oct 6, 2016

It looks like the code in this branch needs the addition of SS authentication in order to work with SS branch dev/issue-9909-move-endpoint-0_10_0 ( 0.9.x + move endpoint code )

qubot pushed a commit that referenced this pull request Oct 11, 2016
 - Add SS API key authentication
 - Add log level configuration
 - Update README and sample script
 - Bug fix
@hakamine hakamine changed the title Dev/issue 9910 storage Automate package moving (storage) refs #9910 Oct 11, 2016
@hakamine hakamine changed the title Automate package moving (storage) refs #9910 Automated package moving (storage) refs #9910 Oct 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants