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

Update demo environment to work with 1.0 #4808

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

dgarros
Copy link
Collaborator

@dgarros dgarros commented Oct 31, 2024

No description provided.

@dgarros dgarros requested a review from a team October 31, 2024 15:01
Copy link

codspeed-hq bot commented Oct 31, 2024

CodSpeed Performance Report

Merging #4808 will improve performances by 32.11%

Comparing dga-20241031-fix-docker-compose-stable (7c5d79c) with stable (2e89e34)

Summary

⚡ 1 improvements
✅ 9 untouched benchmarks

Benchmarks breakdown

Benchmark stable dga-20241031-fix-docker-compose-stable Change
test_schemabranch_duplicate 409.4 µs 309.9 µs +32.11%

@BaptisteGi
Copy link
Contributor

Just tried to run the demo from that branch and it works!

As a side note, don't know if it's normal or not, but when running invoke demo.load-infra-schema it "pulls docker containers"

(infrahub-py3.12) ➜  infrahub git:(dga-20241031-fix-docker-compose-stable) invoke demo.load-infra-schema
command=IMAGE_NAME=registry.opsmill.io/opsmill/infrahub IMAGE_VER=latest PYTHON_VER=3.12 INFRAHUB_BUILD_NAME=infrahub NBR_WORKERS=1 CACHE_DOCKER_IMAGE=redis:7.2.4 MESSAGE_QUEUE_DOCKER_IMAGE=rabbitmq:3.13.7-management TASK_MANAGER_DOCKER_IMAGE=prefecthq/prefect:3.0.3-python3.12 INFRAHUB_DB_TYPE=neo4j DATABASE_DOCKER_IMAGE=neo4j:5.20.0-enterprise docker compose --profile demo -f development/docker-compose-deps.yml -f development/docker-compose-database-neo4j.yml -f development/docker-compose.yml -f development/docker-compose.default.yml -p infrahub run task-worker infrahubctl schema load models/base
[+] Running 1/1
 ✔ server Pulled                                                                                                        0.8s
[+] Creating 6/0
 ✔ Container infrahub-cache-1            Running                                                                        0.0s
 ✔ Container infrahub-task-manager-db-1  Running                                                                        0.0s
 ✔ Container infrahub-task-manager-1     Running                                                                        0.0s
 ✔ Container infrahub-message-queue-1    Running                                                                        0.0s
 ✔ Container infrahub-database-1         Running                                                                        0.0s
 ✔ Container infrahub-server-1           Running                                                                        0.0s
[+] Running 4/4
 ✔ Container infrahub-task-manager-1   Healthy                                                                          0.5s
 ✔ Container infrahub-database-1       Healthy                                                                          0.5s
 ✔ Container infrahub-message-queue-1  Healthy                                                                          0.5s
 ✔ Container infrahub-cache-1          Healthy                                                                          0.5s
[+] Running 2/2
 ✔ server Pulled                                                                                                        0.8s
 ✔ task-worker Pulled                                                                                                   0.8s
 schema 'models/base/routing.yml' loaded successfully
 schema 'models/base/location.yml' loaded successfully
 schema 'models/base/service.yml' loaded successfully
 schema 'models/base/organization.yml' loaded successfully
 schema 'models/base/dcim.yml' loaded successfully
 schema 'models/base/ipam.yml' loaded successfully
 6 schemas processed in 21.388 seconds.
command=IMAGE_NAME=registry.opsmill.io/opsmill/infrahub IMAGE_VER=latest PYTHON_VER=3.12 INFRAHUB_BUILD_NAME=infrahub NBR_WORKERS=1 CACHE_DOCKER_IMAGE=redis:7.2.4 MESSAGE_QUEUE_DOCKER_IMAGE=rabbitmq:3.13.7-management TASK_MANAGER_DOCKER_IMAGE=prefecthq/prefect:3.0.3-python3.12 INFRAHUB_DB_TYPE=neo4j DATABASE_DOCKER_IMAGE=neo4j:5.20.0-enterprise docker compose --profile demo -f development/docker-compose-deps.yml -f development/docker-compose-database-neo4j.yml -f development/docker-compose.yml -f development/docker-compose.default.yml -p infrahub run task-worker infrahubctl menu load models/base_menu.yml
[+] Running 1/1
 ✔ server Pulled                                                                                                        0.8s
WARN[0000] Found orphan containers ([infrahub-task-worker-run-f16b8c213854]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
[+] Creating 6/0
 ✔ Container infrahub-task-manager-db-1  Running                                                                        0.0s
 ✔ Container infrahub-database-1         Running                                                                        0.0s
 ✔ Container infrahub-task-manager-1     Running                                                                        0.0s
 ✔ Container infrahub-message-queue-1    Running                                                                        0.0s
 ✔ Container infrahub-cache-1            Running                                                                        0.0s
 ✔ Container infrahub-server-1           Running                                                                        0.0s
[+] Running 4/4
 ✔ Container infrahub-message-queue-1  Healthy                                                                          0.5s
 ✔ Container infrahub-cache-1          Healthy                                                                          0.5s
 ✔ Container infrahub-task-manager-1   Healthy                                                                          0.5s
 ✔ Container infrahub-database-1       Healthy                                                                          0.5s
[+] Running 2/2
 ✔ task-worker Pulled                                                                                                   0.7s
 ✔ server Pulled                                                                                                        0.7s
[15:13:20] INFO     Node: Organization__MainMenu                                                                 object.py:67
           INFO     Node: Organization__Generic                                                                  object.py:67
[15:13:21] INFO     Node: Organization__Manufacturer                                                             object.py:67
           INFO     Node: Organization__Provider                                                                 object.py:67
           INFO     Node: Organization__Tenant                                                                   object.py:67
           INFO     Node: Location__Menu                                                                         object.py:67
[15:13:22] INFO     Node: Location__Generic                                                                      object.py:67
           INFO     Node: Location__Continent                                                                    object.py:67
           INFO     Node: Location__Country                                                                      object.py:67
           INFO     Node: Location__Site                                                                         object.py:67
           INFO     Node: Location__Rack                                                                         object.py:67
[15:13:23] INFO     Node: Infra__DeviceManagementMenu                                                            object.py:67
           INFO     Node: Infra__NetworkDeviceMenu                                                               object.py:67
           INFO     Node: Infra__Device                                                                          object.py:67
           INFO     Node: Infra__Interface                                                                       object.py:67
           INFO     Node: Infra__MlagMenu                                                                        object.py:67
           INFO     Node: Infra__MlagDomain                                                                      object.py:67
[15:13:25] INFO     Node: Infra__MlagInterface                                                                   object.py:67
           INFO     Node: Infra__Platform                                                                        object.py:67
           INFO     Node: Infra__CircuitMenu                                                                     object.py:67
           INFO     Node: Infra__Circuit                                                                         object.py:67
           INFO     Node: Infra__NetworkMenu                                                                     object.py:67
           INFO     Node: Infra__VLAN                                                                            object.py:67
           INFO     Node: Infra__RoutingPeeringMenu                                                              object.py:67
           INFO     Node: Infra__BGP                                                                             object.py:67
           INFO     Node: Infra__AutonomousSystem                                                                object.py:67
           INFO     Node: Infra__BGPSession                                                                      object.py:67
[15:13:26] INFO     Node: Infra__BGPPeerGroup                                                                    object.py:67
           INFO     Node: Infra__Service                                                                         object.py:67
           INFO     Node: Infra__BackBoneService                                                                 object.py:67
command=IMAGE_NAME=registry.opsmill.io/opsmill/infrahub IMAGE_VER=latest PYTHON_VER=3.12 INFRAHUB_BUILD_NAME=infrahub NBR_WORKERS=1 CACHE_DOCKER_IMAGE=redis:7.2.4 MESSAGE_QUEUE_DOCKER_IMAGE=rabbitmq:3.13.7-management TASK_MANAGER_DOCKER_IMAGE=prefecthq/prefect:3.0.3-python3.12 INFRAHUB_DB_TYPE=neo4j DATABASE_DOCKER_IMAGE=neo4j:5.20.0-enterprise docker compose --profile demo -f development/docker-compose-deps.yml -f development/docker-compose-database-neo4j.yml -f development/docker-compose.yml -f development/docker-compose.default.yml -p infrahub restart server
[+] Restarting 1/1
 ✔ Container infrahub-server-1  Started                                                                                 0.6s
command=IMAGE_NAME=registry.opsmill.io/opsmill/infrahub IMAGE_VER=latest PYTHON_VER=3.12 INFRAHUB_BUILD_NAME=infrahub NBR_WORKERS=1 CACHE_DOCKER_IMAGE=redis:7.2.4 MESSAGE_QUEUE_DOCKER_IMAGE=rabbitmq:3.13.7-management TASK_MANAGER_DOCKER_IMAGE=prefecthq/prefect:3.0.3-python3.12 INFRAHUB_DB_TYPE=neo4j DATABASE_DOCKER_IMAGE=neo4j:5.20.0-enterprise docker compose --profile demo -f development/docker-compose-deps.yml -f development/docker-compose-database-neo4j.yml -f development/docker-compose.yml -f development/docker-compose.default.yml -p infrahub restart task-worker
[+] Restarting 2/2
 ✔ Container infrahub-task-worker-2  Started                                                                            1.1s
 ✔ Container infrahub-task-worker-1  Started                                                                            1.1s

Copy link
Contributor

@wvandeun wvandeun left a comment

Choose a reason for hiding this comment

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

LGTM

@dgarros dgarros merged commit 507c9d7 into stable Oct 31, 2024
29 checks passed
@dgarros dgarros deleted the dga-20241031-fix-docker-compose-stable branch October 31, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants