Skip to content

CP-312965: Port to Python 3. Removed obsolete example.#55

Open
kc284 wants to merge 3 commits into
masterfrom
private/kc284/python3
Open

CP-312965: Port to Python 3. Removed obsolete example.#55
kc284 wants to merge 3 commits into
masterfrom
private/kc284/python3

Conversation

@kc284

@kc284 kc284 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
@kc284 kc284 force-pushed the private/kc284/python3 branch from 936649f to 5e156ad Compare June 3, 2026 10:05
@kc284 kc284 changed the title CA-425708: Port to Python 3. Removed obsolete example. CP-312965: Port to Python 3. Removed obsolete example. Jun 3, 2026
Comment thread python/shutdown.py Outdated
Comment thread python/provision.py Outdated
@xueqingz

xueqingz commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Also I miss a comment, do we need to update python files under /misc ?

@kc284

kc284 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

Ah yes, I didn't think about the files under /misc. I'll look into it - but if you don't mind I'll raise a new PR to keep things separate.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
@kc284 kc284 force-pushed the private/kc284/python3 branch from a0a691d to fbd0ac7 Compare June 8, 2026 15:04
@kc284 kc284 self-assigned this Jun 8, 2026
Comment thread python/shutdown.py Outdated
@kc284 kc284 force-pushed the private/kc284/python3 branch from ceca2d1 to 73aa023 Compare June 11, 2026 10:51
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
@kc284 kc284 force-pushed the private/kc284/python3 branch from 73aa023 to b49ae9a Compare June 11, 2026 10:59
Comment thread python/fixpbds.py
@@ -1 +1 @@
#!/usr/bin/env python

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should be #!/usr/bin/env python3?

Comment thread python/shutdown.py
print sys.argv[0], "<host-uuid> [--force]"
if len(sys.argv) != 4 and len(sys.argv) != 5:
print("Usage:")
print("%s <url> <username> <password> [--force]" % sys.argv[0])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why remove ? This will shutdown all VMs. Is this expected behavior?

Comment thread python/exportimport.py

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
output = ssl.wrap_socket(s)
context = ssl.create_default_context()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should it be replaced with create_unverified_context() to ignore cert check?

Comment thread python/shutdown.py

import XenAPI

TIMEOUT_SECS=30

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's not used now. Should it be removed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants