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

Containerized imcsdk support for CIMC 3.0 using Docker #125

Merged
merged 16 commits into from
May 8, 2017
Merged

Containerized imcsdk support for CIMC 3.0 using Docker #125

merged 16 commits into from
May 8, 2017

Conversation

vhosakot
Copy link

The new CIMC version 3.0 needs:

  • TLS 1.2
  • Python2 version >= 2.7.9 or Python3 version >= 3.2
  • OpenSSL version >= 1.0.1

https://github.com/CiscoUcs/imcsdk/blob/master/docs/imcsdk_ug.rst#getting-started

RHEL ships with Python 2.7.5 as the system Python version:

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)

# python -V
Python 2.7.5

CentOS also ships with Python 2.7.5 as the system Python version:

# cat /etc/centos-release
CentOS Linux release 7.3.1611 (Core)

# python -V
Python 2.7.5

Upgrading system Python in RHEL and CentOS from Python 2.7.5 to Python >= 2.7.9 breaks a lot of packages like pip, yum, ansible, OpenStack packages, etc.

Upgrading system OpenSSL to version >= 1.0.1 may break VPN client and SSL. Apple MacOS sierra ships with OpenSSL 0.9.8 and will not even allow the user to upgrade OpenSSL.

Production/staging/ops testbeds may not even allow us to upgrade system Python and system OpenSSL as it may break other packages/features.

Hence, the best approach is to containerize imcsdk using Docker with all the required dependencies/packages needed to programmatically interact with CIMC 3.0.

This pull request adds Containerized imcsdk support for CIMC 3.0 using Docker.

The Docker container has the following packages needed for CIMC 3.0:

The README file has all the instructions to use this Docker container with CIMC 3.0.

@iawells
Copy link

iawells commented May 1, 2017

Is your argument that we will need to ship this or that we should use this environment for dev while we work something out? Shipping this would be a can of worms.

You probably shouldn't be using pip at all.

@vhosakot
Copy link
Author

vhosakot commented May 1, 2017

@iawells Thanks for your comments. Yes, I think users/customers using CIMC 3.0 need to use this Docker container if they do not want to upgrade their Python to >= 2.7.9 and OpenSSL to 1.0.1.

Maintaining/versioning/shipping this Dockerfile should be very easy.

What is wrong with pip to install a stable upstream package? If pip causes problems, we can use yum or install from source as well using wget, curl, tar, setup.py, make, etc.

@vhosakot
Copy link
Author

vhosakot commented May 1, 2017

@vvb @waghswapnil @ragupta-git FYI.

Copy link
Member

@vvb vvb left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the changes.

@vvb vvb merged commit 971abe0 into CiscoUcs:master May 8, 2017
@vhosakot vhosakot deleted the master-Docker-CIMC3.0 branch May 8, 2017 10:25
@vhosakot
Copy link
Author

vhosakot commented May 8, 2017

@vvb Thanks a lot for merging this! :) Please let me know if there are any questions using the Docker container with CIMC 3.0 and I'd love to help with it.

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