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

Release v1.0.5 in master #155

Merged
merged 55 commits into from
Mar 19, 2020
Merged

Release v1.0.5 in master #155

merged 55 commits into from
Mar 19, 2020

Conversation

titom73
Copy link
Contributor

@titom73 titom73 commented Mar 18, 2020

Release Note content:

Supported CloudVision version:

  • 2018.2.5
  • 2019.1.x

Download Cloudvision appliance: Arista website

Enhancement:

Fixed issues:

Others

  • Remove Dockefile for python2.7.
  • Update Makefile to only support Dockerfile with Python3.
  • Remove old testing files.

b-abadie and others added 30 commits January 29, 2020 16:00
Create first version of a role to configure Zero Touch Provisioning on a
Cloud Vision server.

Add a simple role to configure ZTP server on a CloudVision server:

- Define global IP address Pool
	- Default Gateway
	- Default DNS servers
	- Registration URL
- Define mac based entry with Hostname / IPv4 address binding
Fix problem in delete_topology (state absent) and
delete_unused_containers (mode override) where reversed list where not
set to the correct tree list.
First test to build logging across all modules.

Goal:
-----
- centralize file destination for both modules & module_utils *
- common and easy mechanism to log in modules: no if constraint to make
it easy to read.

Based on logging library

Workflow:
---------
- Create a new module_utils.logger file to configure logger
- Get a logger in modules with MODULE_LOGGER = logging.getLogger('arista.cvp.cv_facts')
- use MODULE_LOGER.<level> to log in file

Options & configuration:
------------------------
- Log Facility is set to info by default and can be override with an env
var: ANSIBLE_CVP_LOG_LEVEL
- Log destination is a file set to /temp/arista.cvp.debug.log and can be
override with an env var: ANSIBLE_CVP_LOG_FILE

Log output examples:
--------------------
```
03-04 11:35 arista.cvp.cv_facts INFO     Start cv_facts module execution
03-04 11:35 arista.cvp.cv_facts INFO     Connecting to CVP
03-04 11:35 urllib3.connectionpool DEBUG    Starting new HTTPS connection (1): 10.83.28.164:443
```
Configure default handler to run log rotation by default to avoid to
saturate disk storage.
Even if no logging is active in modules, default configuration has been
set:

```
import ansible_collections.arista.cvp.plugins.module_utils.logger

MODULE_LOGGER = logging.getLogger('arista.cvp.cv_facts')
MODULE_LOGGER.info('Start cv_facts module execution')

[...]

MODULE_LOGGER.debug('*** Connected to CVP')
```
- Linting: All branches except master and tag
- Ansible-test: Pull request with base releases/*
- Rebase: rebase pr when user comment with /rebase
- Stale: When issue/PR have not label state:accepted and inactive for 30
days. Closed after 5 days after stale
Implement role to configure ZTP on CloudVision
 Remove Dockerfile for py3 and py2.7 and make a unique Dockerfile for
 latest python version

 Update Makefile to get only one docker target and with better naming
 convention
Because URLLIB3 is logging a lot, being able to specificy urllib3
specifically is implemented:

- Log facilyt is set to WARNING by default for urllib3 handler
- User can get other verbosity with env variable: `export ANSIBLE_CVP_LOG_APICALL=debug`

Output is part of collection log file.
Fix deletion problem w/ additional containers #142
…ration

Enable basic CI with Github actions
- Linting: All branches except master and tag
- Ansible-test: Pull request with base releases/*
- Rebase: rebase pr when user comment with /rebase
- Stale: When issue/PR have not label state:accepted and inactive for 30
days. Closed after 5 days after stale
Even if no logging is active in modules, default configuration has been
set:

```
import ansible_collections.arista.cvp.plugins.module_utils.logger

MODULE_LOGGER = logging.getLogger('arista.cvp.cv_facts')
MODULE_LOGGER.info('Start cv_facts module execution')

[...]

MODULE_LOGGER.debug('*** Connected to CVP')
```
@titom73 titom73 added the status: in-progress Currently under investigation or implementation label Mar 18, 2020
@titom73 titom73 added this to the v1.0.5 milestone Mar 18, 2020
@titom73 titom73 self-assigned this Mar 18, 2020
Remove the save_topology parameter in documentation
…refactoring

ztp configuration refactoring
@titom73 titom73 marked this pull request as ready for review March 18, 2020 07:47
Copy link
Member

@carlbuchmann carlbuchmann left a comment

Choose a reason for hiding this comment

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

LGTM + tested with ansible-avd.

@titom73 titom73 merged commit e3a3698 into master Mar 19, 2020
@titom73 titom73 deleted the releases/v1.0.x branch March 19, 2020 11:39
@titom73 titom73 restored the releases/v1.0.x branch March 19, 2020 11:39
@titom73 titom73 added status: testing PR under testing and removed status: in-progress Currently under investigation or implementation labels May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: testing PR under testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants