Welcome to NITA, an open source platform for automating the building and testing of complex networks.
The major change in this version is that all components now run within pods under the control of Kubernetes, rather than as Docker containers. Consequently we have updated the way that the webapp runs because it is now controlled by Kubernetes instead of Docker.
Please refer to the README for more details.
The simplest way to install the nita-webapp is by installing nita, which can be done by running the install.sh
script located and in the parent nita repo as described here.
NITA exposes two web applications, listening on two different ports for https:
The default user credentials for the NITA webapp and Jenkins are listed below:
Username | Password | |
---|---|---|
Webapp | vagrant | vagrant123 |
Jenkins | admin | admin |
A number of CLI scripts are installed with NITA which you can use to manage the Webapp:
user@host:$ nita-cmd webapp help
nita-cmd webapp cli => Create an interactive session in the webapp container by executing a bash shell and using stdin as a tty.
nita-cmd webapp db cli => Create an interactive session in the db pod by executing a bash shell.
nita-cmd webapp up => Stops and removes the running NITA Webapp service, according to the configuration file in
nita-cmd webapp ips => Returns IPs information on webapp container.
nita-cmd webapp labels => Returns labels information on webapp container.
nita-cmd webapp logs => Follows log output of webapp container.
nita-cmd webapp db cli => Create an interactive session in the proxy pod by executing a bash shell.
nita-cmd webapp restart => Restart the NITA Webapp with zero downtime by starting a new pod before terminating the old one.
nita-cmd webapp start => Starts the NITA Webapp pod.
nita-cmd webapp status => Shows the status of every NITA Webapp containers.
nita-cmd webapp stop => Terminate the NITA Webapp pod.
nita-cmd webapp up => Creates and starts NITA Webapp service according to the configuration file in
user@host:$
You can access the shell of the webapp container simply be running the following command:
user@host$ nita-cmd webapp cli
If you don't see a command prompt, try pressing enter.
root@webapp-748668765-m286j:/app# exit
exit
user@host$
Copyright 2024, Juniper Networks,Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
If you are planning on using NITA or any of the technologies related to NITA then please consider going on the Juniper JAUT and AJAUT courses. These will give you the essential knowledge you need to do successful network automation!
https://learningportal.juniper.net/juniper/user_activity_info.aspx?id=10840
The idea here is to provide multiple NITA based projects with a firm foundation that they can use to focus on solving customer problems rather than continually tweaking the underlying software.
It allows NITA projects to declare exactly which version of NITA they are compatible with.
Projects must explicitly use the versions of the containers provided by this package in order to avoid docker attempting to download from the registry. No containers tagged as "latest" are provided by the package.
N: Download is performed unsandboxed as root as file '/root/nita-webapp-20.7-1.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
and can be ignored.nita jenkins jobs delete
to remove them.nita-cmd webapp restart
after nita-jenkins reinstallation.setenforce 0
beforehand and setenforce 1
afterwards).apt install openjdk-11-jre-headless=11.0.7+10-3ubuntu1
or similar (you can find which versions are available with apt-cache policy openjdk-11-jre-headless