Run GitLab CI/CD
Final Deployment
  • Introduction
  • NaC Introduction
  • Manual Validation
  • CXTM Introduction
  • CXTM Projects
  • CXTM Test Cases
  • CXTM Test Automation
  • CXTM Git Integration
  • CXTM Batches
  • CXTM Notifications
  • Final Deployment
  • CXTM Reporting
  • CXTM References
  • Bonus Content

Run Final GitLab CI/CD Pipeline

In this section, you will execute the complete GitLab CI/CD pipeline with all stages including validation, planning, deployment, testing, and notifications to deploy the expanded Nexus fabric configuration.

Step 1 - Apply the fabric configuration

It is time to add these files with Git in preparation for committing them to the repo. You perform the action of adding files with git add. You will add your .gitlab-ci.yml file and add your data directory.

  1. Perform a git add of the files created. Copy and paste the below command in the VS Code Server terminal window to add the files.

  2. 
    git add .gitlab-ci.yml
    git add data/
    
            

  3. Next, you will perform a git commit and push the configuration files from local to the remote repository in GitLab. This will trigger the pipeline to apply the fabric configuration changes.

  4. 
    git commit -m "Final Fabric Deployment"
    
            

  5. Finally, perform a git push of the files to the remote repository. This will automatically trigger the pipeline to apply the configuration changes to the nexus fabric. Copy and paste the below command in the VS Code Server terminal window to push the files.

  6. 
    git push -u origin fabric-expansion
    
            

  7. Return to GitLab repo by clicking on the LTROPS-2711 project name on the left side menu.


Step 2 - Create a Merge Request

From your GitLab project page:

  1. Click Create merge request



Step 3 - Open Merge Request

In the New merge request window, perform the following:

  1. Insert a description: Initiate nexus fabric expansion configuration on the spine S1,S2 and leaf L3,L4 switches with system, interface, and BGP configurations
  2. Click Create merge request



Step 4 - Navigate to Pipeline

Navigate to the pipeline that was launched when you opened your merge request:

  1. Click the number for the merge request pipeline number that comes after Merge request pipeline



Step 5 - Review Overall Pipeline

At this point, you should have successfully triggered the CI pipeline for your proposed fabric expansion deployment configuration. The screenshots below show a completed and Passed pipeline. If your own pipeline is still running, please wait until all your pipeline stages have completed before proceeding.


Alert

Notify your proctor if any stages of your pipeline have Failed before moving on.


Step 6 - Navigate to Validate Stage

The validate stage checks the syntax of your Terraform configuration and YAML files. Let's review the results.

  1. Click on the validate stage to view the validation job execution results.

  2. Review the pipeline execution to ensure the validation job completed successfully.
  3. Click the pipeline number on the right-side pane.


Step 7 - Navigate to Plan Stage

The plan stage generates an execution plan that identifies which resources will be created, modified, or destroyed on your Nexus fabric.

  1. Click on the plan stage to view the plan stage execution results.

  2. Review the pipeline execution to ensure the plan job completed successfully.
  3. Click the pipeline number on the right-side pane.


Step 8 - Navigate to Deploy Stage

The deploy stage applies the configuration changes to your Nexus fabric by executing the Terraform apply.

  1. Click on the deploy stage to view the deployment execution results.

  2. Review the pipeline execution to ensure the deploy job completed successfully.
  3. Click the pipeline number on the right-side pane.


Step 9 - Navigate to CXTM Testing Stage

The cxtm stage executes automated network tests using Cisco's CX Test Manager to validate the deployed fabric configuration.

  1. Click on the cxtm stage to view the test execution results.

  2. Review the test execution to ensure all tests completed successfully.
  3. Click the pipeline number on the right-side pane.


Step 10 - Navigate to Notify Stage

The notify stage sends notifications to Webex Teams about the pipeline execution results.

  1. Click on the notify stage to view the notification job execution results.

  2. Review the notification job to ensure it completed successfully.
  3. Click the pipeline number on the right-side pane.