GithubHelp home page GithubHelp logo

f5devcentral / f5-super-netops-container Goto Github PK

View Code? Open in Web Editor NEW
22.0 24.0 15.0 80 KB

F5 Super NetOps container images that enable Automation and Orchestration with a DevOps methodology

License: MIT License

Shell 39.30% Python 53.69% Groovy 7.01%
f5-super-netops devops-tools docker-image automation orchestration declarative rest-api documentation

f5-super-netops-container's Introduction

README

Status

Master: badge_rtd_latest badge_travis_master

Develop: badge_rtd_develop badge_travis_develop

About

Super-NetOps is the new NetOps. This repo supports and auto-build integration with Docker Hub.

Docker Repo: https://hub.docker.com/r/f5devcentral/f5-super-netops-container/ GitHub Repo: https://github.com/f5devcentral/f5-super-netops-container

To learn more about Super-NetOps, read 'Does DevOps need a Super-NetOps':

https://redtalks.live/2016/11/04/does-devops-need-a-super-netops/

Use

The f5-super-netops container uses the Docker platform:

https://www.docker.com/products/overview#/install_the_platform

The following command will download the 'f5-super-netops-container', run it, remap the SSH and HTTP ports to localhost:2222 and localhost:8080 respectively and begin an interactive shell session:

docker run -p 8080:80 -p 2222:22 -it f5devcentral/f5-super-netops-container:base

f5-super-netops-container's People

Contributors

0xhiteshpatel avatar mcgonagle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

f5-super-netops-container's Issues

fails to run "/snopsboot/cloneGitRepos.py" on CENTOS / RHEL 7

Looks like /tmp is empty when running in RHEL/CENTOS 7

docker.io/f5devcentral/f5-super-netops-container base 981a467f7318 5 weeks ago 206.7 MB

$ docker --version
Docker version 1.12.6, build 0fdc778/1.12.6
[cloneGitRepos] Retrieving repository list from https://github.com/f5devcentral/f5-super-netops-container.git#master
[updateRepos] Processing /tmp/snops-repo/images/base/fs/etc/snopsrepo.d/base.json
[updateRepos] Processing /tmp/user_repos.json
[updateRepos][error] Open of file "/tmp/user_repos.json" failed: [Errno 2] No such file or directory: '/tmp/user_repos.json'
[cloneGitRepos] Loading repositories from /home/snops/repos.json
Traceback (most recent call last):
  File "/snopsboot/cloneGitRepos.py", line 34, in <module>
    repo_file = safe_open(args.filename)
  File "/snopsboot/cloneGitRepos.py", line 20, in safe_open
    print "Open of file '{0}' failed({1}): {2}".format(args[0], e.errno, e.strerror)
TypeError: 'Namespace' object does not support indexing

f5-newman-Wrapper - not loading the env file generated by a previous collection

Hi,

trying to use the f5-new-wrapper and i cannot make it load the environment file generated by a previous wrapper.

I have 2 wrappers:
1- Wrapper_BIGIQ_LM_Create_License_Pool.json : it creates a license pool on BIG-IQ LM and also activate a regkey into it
2- Wrapper_BIGIQ_LM_License_BIGIP.json : it licenses a BIG-IP based on the previous license pool/regkey created.

to assign the license to the BIG-IP, i need to re-use the environment variable created in the first wrapper. To do so i use this in my first wrapper configuration:
"envOutputFile":"Wrapper_BIGIQ_LM_Create_License_Pool-env.json",

I use this in my second wrapper to try to load this env file:
"globalVarsIncludeFile": "./Wrapper_BIGIQ_LM_Create_License_Pool-env.json",

When i trigger the first wrapper, i can validate that Wrapper_BIGIQ_LM_Create_License_Pool-env.json gets properly populated. For example:

{
      "type": "any",
      "value": "8ffefeb6-0829-4435-a7e7-fd41655bf01a",
      "key": "license-pool-id"
    },

The issue is when i trigger the 2nd wrapper, it isn't using any of the variables define in the file. you see this for example during the wrapper process:

POST https://192.168.143.31/mgmt/cm/device/licensing/pool/regkey/licenses/{{license-pool-id}}/offerings/{{bigip-regkey}}/members [400 Error processing request, 625B, 7ms]

Here we can see that license-pool-id has not been replaced by the variable defined in the relevant env file. If i check Wrapper_BIGIQ_LM_License_BIGIP-env.json, we can see that the only variables defined here are the ones defined in the wrapper itself. Not the variables defined in the previous wrapper env file.
Wrapper_BIGIQ_LM_Create_License_Pool-env.json.txt
Wrapper_BIGIQ_LM_Create_License_Pool.json.txt
Wrapper_BIGIQ_LM_License_BIGIP-env.json.txt
Wrapper_BIGIQ_LM_License_BIGIP.json.txt

i tried a few things but nothing helped:

  • Shorten the name of the
  • Remove some variable like the eula variable that is pretty large
  • tried to store the env file somewhere else.

Couldn't find any log files to try to track the processing.

Any idea ?

jenkins image issue - doesn't start properly

if i start a jenkins super netops container , it dies after a minute on its own:

i launch my container with the following command:

sudo docker run --detach --hostname jenkins.my-lab -p 1080:8080 -p 1022:22 -p 50000:50000 --name jenkins --volume /Users/menant/projects/containers_vol/jenkins/:/var/jenkins_home f5devcentral/f5-super-netops-container:jenkins

logs are not really helpful here:
nico-laptop:jenkins menant$ sudo docker logs jenkins
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
...........
...........
Go forth and automate!

(you can now detach by using Ctrl+P+Q)

/snopsboot/start exited 0
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
nico-laptop:jenkins menant$

if i try to connect to my jenkins web interface, i get the following error:

http://jenkins.my-lab:1080/

AWT is not properly configured on this server. Perhaps you need to run your container with "-Djava.awt.headless=true"? See also: https://jenkins.io/redirect/troubleshooting/java.awt.headless

java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64/libfontmanager.so: Error relocating /usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64/libfontmanager.so: AWTFontDefaultChar: symbol not found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1845)
.........
.........

i tried a few thing :

  • make sure that my host jenkins folder is owned by uid 1001
  • run this:

sudo docker run --detach --hostname jenkins.my-lab -p 1080:8080 -p 1022:22 -p 50000:50000 --name jenkins --env JAVA_OPTS=-Djava.awt.headless=true --volume /Users/menant/projects/containers_vol/jenkins/:/var/jenkins_home f5devcentral/f5-super-netops-container:jenkins

any ideas ?

Pull on Latest isn't grabbing repos/newman

FLD-ML-CALALAN1:~ calalang$ docker run -p 8080:80 -p 2222:22 -it f5devcentral/f5-super-netops
Unable to find image 'f5devcentral/f5-super-netops:latest' locally
latest: Pulling from f5devcentral/f5-super-netops
ec37562cf8fa: Pull complete
065dbb94f1df: Pull complete
61a6b21a4926: Pull complete
98aa338aeece: Pull complete
04c728f639b1: Pull complete
56ffcc1e9925: Pull complete
b849c403bc53: Pull complete
a3f4c6691511: Pull complete
922ad8a9019e: Pull complete
88893eb8bd64: Pull complete
b6c232a411b4: Pull complete
628a6d0d010a: Pull complete
Digest: sha256:a51c0b93d596e32ed3f6af68b4411655549295cfeacfb3137fdcf6e82284734f
Status: Downloaded newer image for f5devcentral/f5-super-netops:latest
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Reticulating splines...
Becoming self-aware...
[cloneGitRepos] Retrieving repository list from master
[cloneGitRepos] Found 1 repositories to clone...
[cloneGitRepos][1/1] Cloning 404::404: from 404:
[cloneGitRepos][2/1] Cloning Not:Not from Not
[cloneGitRepos][3/1] Cloning Found:Found from Found

cute little 404 Not Found :)

noticed the changes last night, investigating.

updateRepos Failing - Investigating

Becoming self-aware...
[cloneGitRepos] Retrieving repository list from https://github.com/f5devcentral/f5-super-netops-container.git#master
[updateRepos] Processing /tmp/snops-repo/images/base/fs/etc/snopsrepo.d/base.json
[updateRepos] Processing /tmp/user_repos.json
[updateRepos][error] Open of file "/tmp/user_repos.json" failed: [Errno 2] No such file or directory: '/tmp/user_repos.json'
[cloneGitRepos] Loading repositories from /home/snops/repos.json
[cloneGitRepos][error] Open of file "/home/snops/repos.json" failed: [Errno 2] No such file or directory: '/home/snops/repos.json

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.