Skip to main content
Bruce Hewson
Participating Frequently
Dec 9, 2020 2:11 AM UTC

Z/OS Conda - architectural concepts in a multi-site multi-system environment with a single maintenance build system.

My first glance at MiniConda. It appears to be customized on a single system installation concept. 

Historically we have installed the OpenSource tools easily into each products own ZFS dataset mounted on the maintenance path. Propagation to all the other systems occurred via DFDSS backup of said ZFS dataset to be restored and renamed as required on each target system.

In simple terms can anyone document how this install/maintain/propagate process could be performed using MiniConda in Z/OS.

I have started reading the User Manuals @ https://docs.conda.io and my initial impression is that it is similar in concept to APT in DEBIAN LINUX.

Additionally what firewall rules would I need to get this working?

Regards
Bruce

------------------------------
Bruce Hewson
Citibank
------------------------------

    31 replies

    Lionel Dyck
    Participating Frequently
    Jan 14, 2021 7:33 AM UTC
    Lionel,
    Could you post here exact commands and outputs? It would help us to assist you.

    ------------------------------
    Tatiana Balaburkina
    Rocket Software
    ------------------------------
    As there is no command history that I can find I am unable to do this.  I will try to recreate.

    ------------------------------
    Lionel Dyck
    lbdyck
    ------------------------------
    Lionel Dyck
    Participating Frequently
    Jan 14, 2021 7:40 AM UTC
    I agree Lionel.   I can't tell you how pleased I was when I found out I had to learn yet another way to install a product on z/OS.   Remember the days of SMP/E for IBM products and IEBCOPY for ISVs.  Things were so much simpler back then.    :-)

    ------------------------------
    Gary Freestone
    IBM Australia
    ------------------------------
    Using the conda create -p .... I was able to create a unique directory for git 2.26 and have it installed. 

    Now - where do I find the information on how to setup my environment to use it? Does miniconda create a file somewhere that I can then copy all/part to place into my target systems /etc/profile ?

    ------------------------------
    Lionel Dyck
    lbdyck
    ------------------------------
    Lionel Dyck
    Participating Frequently
    Jan 14, 2021 7:43 AM UTC
    I agree Lionel.   I can't tell you how pleased I was when I found out I had to learn yet another way to install a product on z/OS.   Remember the days of SMP/E for IBM products and IEBCOPY for ISVs.  Things were so much simpler back then.    :-)

    ------------------------------
    Gary Freestone
    IBM Australia
    ------------------------------
    Gary - agreed.  The old way was much easier to use (imho) as it was granular and easy to document for change management and auditors. With conda it's a black box that doesn't provide the audit history that change management or auditors seek. Conda also hides the environment setup which is something the auditors look at. When I worked at a US government site providing a copy of the /etc/profile and /etc/rc was key to the annual audit process.

    ------------------------------
    Lionel Dyck
    lbdyck
    ------------------------------
    Jan 14, 2021 12:05 PM UTC
    Gary - agreed.  The old way was much easier to use (imho) as it was granular and easy to document for change management and auditors. With conda it's a black box that doesn't provide the audit history that change management or auditors seek. Conda also hides the environment setup which is something the auditors look at. When I worked at a US government site providing a copy of the /etc/profile and /etc/rc was key to the annual audit process.

    ------------------------------
    Lionel Dyck
    lbdyck
    ------------------------------
    Hi Lionel,

    Rocket ported tools (incl. conda) are open sourced. Although you can always learn the code, you are absolutely don't need to! If you want to see, which environment variables were modified, you can run the following commands and compare outputs:

    > env | sort #prints out current environment settings

    > conda activate <env_name> #activates an environment and adjusts environment settings

    > env | sort #prints out new environment settings

     You are even not obliged to modify general config files (like /etc/profile). You can run "./<installation_path>/etc/profile.d/conda.sh" command manually, when you want to work with conda in your current session.

    In terms of history, I find conda even much more convenient that the old way. Just one command "conda list" shows you all the installed packages with their versions and build numbers. So you don't need to guess where you should gather information which builds you are using.



    ------------------------------
    Peter Fandel
    Rocket Software
    ------------------------------
    Lionel Dyck
    Participating Frequently
    Jan 14, 2021 12:39 PM UTC
    Hi Lionel,

    Rocket ported tools (incl. conda) are open sourced. Although you can always learn the code, you are absolutely don't need to! If you want to see, which environment variables were modified, you can run the following commands and compare outputs:

    > env | sort #prints out current environment settings

    > conda activate <env_name> #activates an environment and adjusts environment settings

    > env | sort #prints out new environment settings

     You are even not obliged to modify general config files (like /etc/profile). You can run "./<installation_path>/etc/profile.d/conda.sh" command manually, when you want to work with conda in your current session.

    In terms of history, I find conda even much more convenient that the old way. Just one command "conda list" shows you all the installed packages with their versions and build numbers. So you don't need to guess where you should gather information which builds you are using.



    ------------------------------
    Peter Fandel
    Rocket Software
    ------------------------------
    True to a point - but something that is non-standard and thus known only to the select few for history/etc.

    On the environment I did find them but in the path/conda/activate.d/xxx.sh where there is one for git and one for perl and one for .....

    Using miniconda makes it difficult if I just want to roll out bash or perl compared to the previous installation process. And when installing to a specific path (create -p xxx) there is more than just the requested package - there is conda related directories which I presume can be ignored when deploying beyond the conda environment).

    Miniconda does look to be very nice but it isn't z/OS and makes working with existing change management and audit controls challenging as well as the stated challenges of trying to deploy only a specific package.

    Thank you for your help - at this point I think I've got what I need to proceed and I'm sure as I learn more about miniconda it will become more intuitive and the doc I will have to write up for others, including auditors, will make things less ivory towerish.

    ------------------------------
    Lionel Dyck
    lbdyck
    ------------------------------
    Jan 15, 2021 8:40 AM UTC
    True to a point - but something that is non-standard and thus known only to the select few for history/etc.

    On the environment I did find them but in the path/conda/activate.d/xxx.sh where there is one for git and one for perl and one for .....

    Using miniconda makes it difficult if I just want to roll out bash or perl compared to the previous installation process. And when installing to a specific path (create -p xxx) there is more than just the requested package - there is conda related directories which I presume can be ignored when deploying beyond the conda environment).

    Miniconda does look to be very nice but it isn't z/OS and makes working with existing change management and audit controls challenging as well as the stated challenges of trying to deploy only a specific package.

    Thank you for your help - at this point I think I've got what I need to proceed and I'm sure as I learn more about miniconda it will become more intuitive and the doc I will have to write up for others, including auditors, will make things less ivory towerish.

    ------------------------------
    Lionel Dyck
    lbdyck
    ------------------------------
    Hi Lionel,

    We at Rocket are of the opinion that open source will rapidly gain adoption on z/OS and rather than Bash here and Perl there, mainframe users will be deploying much larger numbers of open source tools and making them a critical part of their tool chains and application development infrastructure. 

    We will continue to do our best to support you through this transition.

    Best Regards,
    -Peter

    ------------------------------
    Peter Fandel
    Rocket Software
    ------------------------------
    Lionel Dyck
    Participating Frequently
    Jan 15, 2021 8:48 AM UTC
    Hi Lionel,

    We at Rocket are of the opinion that open source will rapidly gain adoption on z/OS and rather than Bash here and Perl there, mainframe users will be deploying much larger numbers of open source tools and making them a critical part of their tool chains and application development infrastructure. 

    We will continue to do our best to support you through this transition.

    Best Regards,
    -Peter

    ------------------------------
    Peter Fandel
    Rocket Software
    ------------------------------
    Peter - you are correct that many open source tools will become standard but until they are deployed as part of the standard z/OS deployment they will not be pervasive. Witness zowe - IBM realized that it needed to provide a distribution using IBM channels for it to gain a broader audience and level of confidence by the customers. Many smaller shops don't have the sysprog bandwidth to deal with multiple vendors and multiple install methods - granted miniconda helps but it is yet another install tool (yait in open source parlence :) ).

    ------------------------------
    Lionel Dyck
    lbdyck
    ------------------------------
    Vladimir Ein
    Rocketeer
    Jan 15, 2021 10:53 AM UTC
    Peter - you are correct that many open source tools will become standard but until they are deployed as part of the standard z/OS deployment they will not be pervasive. Witness zowe - IBM realized that it needed to provide a distribution using IBM channels for it to gain a broader audience and level of confidence by the customers. Many smaller shops don't have the sysprog bandwidth to deal with multiple vendors and multiple install methods - granted miniconda helps but it is yet another install tool (yait in open source parlence :) ).

    ------------------------------
    Lionel Dyck
    lbdyck
    ------------------------------
    Hi Lionel,

    Let's try to get it working for you. You've probably progressed a bit during this conversation, so I'm not sure how's everything going at the moment. Could you please tell us in more detail (if possible) what you're trying to achieve and what are the issues you're currently experiencing?

    Regards,
    Vladimir

    ------------------------------
    Vladimir Ein
    Rocket Software
    ------------------------------
    Lionel Dyck
    Participating Frequently
    Jan 15, 2021 10:58 AM UTC
    Hi Lionel,

    Let's try to get it working for you. You've probably progressed a bit during this conversation, so I'm not sure how's everything going at the moment. Could you please tell us in more detail (if possible) what you're trying to achieve and what are the issues you're currently experiencing?

    Regards,
    Vladimir

    ------------------------------
    Vladimir Ein
    Rocket Software
    ------------------------------

    I have the target directory (filesystem) with git and all it's components.  I found the xxx.sh to configure the profile and now need to find the time to collect each of those files into a consolidated file and then add it to my /etc/profile (initially for testing to my ~/.profile.  I hope to get to that this weekend.

     

    Thank you for all your help.

     

    Btw. The xxxx.sh files use a variable for the conda directory and it would be easier in this case if the variable were resolved when creating the xxxx.sh files.

     

    I'll update this weekend or early next week on my progress.

     

    Lionel B. Dyck <sdg><

    Website: https://www.lbdsoftware.com

     

    "Worry more about your character than your reputation.  Character is what you are, reputation merely what others think you are." - John Wooden

     


    Vladimir Ein
    Rocketeer
    Jan 15, 2021 2:42 PM UTC

    I have the target directory (filesystem) with git and all it's components.  I found the xxx.sh to configure the profile and now need to find the time to collect each of those files into a consolidated file and then add it to my /etc/profile (initially for testing to my ~/.profile.  I hope to get to that this weekend.

     

    Thank you for all your help.

     

    Btw. The xxxx.sh files use a variable for the conda directory and it would be easier in this case if the variable were resolved when creating the xxxx.sh files.

     

    I'll update this weekend or early next week on my progress.

     

    Lionel B. Dyck <sdg><

    Website: https://www.lbdsoftware.com

     

    "Worry more about your character than your reputation.  Character is what you are, reputation merely what others think you are." - John Wooden

     


    One question about combining those .sh files -

    Do I understand correctly that the reason for this is that for audit / change management, you can only report /etc/profile and not some scripts 'external' to it?

    Won't it work if you just 'source' them from your /etc/profile like this below? Also please keep in mind that PATH, LIBPATH and MANPATH are modified by conda itself and not by those activation scripts.

    export CONDA_PREFIX=/path/to/your/env
    export PATH=$CONDA_PREFIX/bin:$PATH
    export LIBPATH=$CONDA_PREFIX/lib:$LIBPATH
    export MANPATH=$CONDA_PREFIX/share/man:$CONDA_PREFIX/man:$MANPATH

    for i in $CONDA_PREFIX/etc/conda/activate.d/*.sh; do . $i; done

    ------------------------------
    Vladimir Ein
    Rocket Software
    ------------------------------