2025-05-28 11:39:03,317 - INFO - Domain Default found not creating
2025-05-28 11:39:03,448 - INFO - Project ctest-TestBasicPolicy-97832466 not found, creating it
2025-05-28 11:39:03,893 - INFO - Created Project:ctest-TestBasicPolicy-97832466, ID : 164ff2de-675d-4eef-8d8d-102684bdd1af
2025-05-28 11:39:05,435 - INFO - ================================================================================
2025-05-28 11:39:05,436 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-28 11:39:05,436 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-05-28 11:39:05,694 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with
2025-05-28 11:39:05,694 - INFO - Initial checks done. Running the testcase now
2025-05-28 11:39:05,694 - INFO -
2025-05-28 11:39:06,274 - DEBUG - Response for create_network : {'network': {'id': '16f9d55e-b006-4fe7-95d1-d2a1411f2c91', 'name': 'ctest-vn-13382590', 'tenant_id': '164ff2de675d4eef8d8d102684bdd1af', 'project_id': '164ff2de675d4eef8d8d102684bdd1af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97832466', 'ctest-vn-13382590'], 'port_security_enabled': True, 'description': ''}}
2025-05-28 11:39:06,457 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ad1dc1c-7ea8-49bd-84f4-cd01d8d1a43f', 'name': '', 'tenant_id': '164ff2de675d4eef8d8d102684bdd1af', 'network_id': '16f9d55e-b006-4fe7-95d1-d2a1411f2c91', 'ip_version': 4, 'cidr': '142.76.136.128/26', 'allocation_pools': [{'start': '142.76.136.130', 'end': '142.76.136.190'}], 'gateway_ip': '142.76.136.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.76.136.130', 'tags': [], 'project_id': '164ff2de675d4eef8d8d102684bdd1af'}}
2025-05-28 11:39:06,473 - INFO - Created VN ctest-vn-13382590
2025-05-28 11:39:06,523 - DEBUG - VN ctest-vn-13382590 UUID is 16f9d55e-b006-4fe7-95d1-d2a1411f2c91
2025-05-28 11:39:06,861 - DEBUG - Response for create_network : {'network': {'id': '06f29410-933d-43f7-b26d-d8be8978f0cb', 'name': 'ctest-vn-48365466', 'tenant_id': '164ff2de675d4eef8d8d102684bdd1af', 'project_id': '164ff2de675d4eef8d8d102684bdd1af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97832466', 'ctest-vn-48365466'], 'port_security_enabled': True, 'description': ''}}
2025-05-28 11:39:07,059 - DEBUG - Response for create_subnet : {'subnet': {'id': '9fbbc152-0bc6-4e4d-88d0-ef191f91c673', 'name': '', 'tenant_id': '164ff2de675d4eef8d8d102684bdd1af', 'network_id': '06f29410-933d-43f7-b26d-d8be8978f0cb', 'ip_version': 4, 'cidr': '25.84.25.128/26', 'allocation_pools': [{'start': '25.84.25.130', 'end': '25.84.25.190'}], 'gateway_ip': '25.84.25.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.84.25.130', 'tags': [], 'project_id': '164ff2de675d4eef8d8d102684bdd1af'}}
2025-05-28 11:39:07,076 - INFO - Created VN ctest-vn-48365466
2025-05-28 11:39:07,127 - DEBUG - VN ctest-vn-48365466 UUID is 06f29410-933d-43f7-b26d-d8be8978f0cb
2025-05-28 11:39:07,275 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97832466:ctest-vn-13382590, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97832466:ctest-vn-48365466, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-05-28 11:39:07,569 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16f9d55e-b006-4fe7-95d1-d2a1411f2c91', 'name': 'ctest-vn-13382590', 'tenant_id': '164ff2de675d4eef8d8d102684bdd1af', 'project_id': '164ff2de675d4eef8d8d102684bdd1af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6ad1dc1c-7ea8-49bd-84f4-cd01d8d1a43f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97832466', 'ctest-vn-13382590'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97832466', 'ctest-policy-allow-all-63445626']], 'subnet_ipam': [{'subnet_cidr': '142.76.136.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-28 11:39:07,804 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '06f29410-933d-43f7-b26d-d8be8978f0cb', 'name': 'ctest-vn-48365466', 'tenant_id': '164ff2de675d4eef8d8d102684bdd1af', 'project_id': '164ff2de675d4eef8d8d102684bdd1af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9fbbc152-0bc6-4e4d-88d0-ef191f91c673'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97832466', 'ctest-vn-48365466'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97832466', 'ctest-policy-allow-all-63445626']], 'subnet_ipam': [{'subnet_cidr': '25.84.25.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-28 11:39:07,967 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-05-28 11:39:08,303 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-05-28 11:39:08,329 - DEBUG - Requesting: http://10.0.0.49:8082/domain/6aacc72c-3302-4820-9ee2-a9ebe0963d25
2025-05-28 11:39:08,342 - DEBUG - Requesting: http://10.0.0.49:8082/project/164ff2de-675d-4eef-8d8d-102684bdd1af
2025-05-28 11:39:08,417 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/16f9d55e-b006-4fe7-95d1-d2a1411f2c91
2025-05-28 11:39:08,428 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/16f9d55e-b006-4fe7-95d1-d2a1411f2c91
2025-05-28 11:39:08,438 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8534e6a6-5efe-4e8f-93a8-2c3333c50490
2025-05-28 11:39:08,445 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8534e6a6-5efe-4e8f-93a8-2c3333c50490
2025-05-28 11:39:08,452 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/43c71e42-f97b-499d-aaf0-7baf8f685306
2025-05-28 11:39:08,458 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-28 11:39:08,458 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/16f9d55e-b006-4fe7-95d1-d2a1411f2c91
2025-05-28 11:39:08,467 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8534e6a6-5efe-4e8f-93a8-2c3333c50490
2025-05-28 11:39:08,480 - INFO - Verified VN network id 8 for VN 16f9d55e-b006-4fe7-95d1-d2a1411f2c91
2025-05-28 11:39:08,480 - INFO - Verifications in API Server for VN ctest-vn-13382590 passed
2025-05-28 11:39:08,480 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/16f9d55e-b006-4fe7-95d1-d2a1411f2c91
2025-05-28 11:39:08,489 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8534e6a6-5efe-4e8f-93a8-2c3333c50490
2025-05-28 11:39:08,496 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8534e6a6-5efe-4e8f-93a8-2c3333c50490
2025-05-28 11:39:08,502 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/43c71e42-f97b-499d-aaf0-7baf8f685306
2025-05-28 11:39:08,513 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97832466:ctest-vn-13382590', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97832466', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1655588940692213735', 'uuid-lslong': '10795641371807919249'}, 'enable': 'true', 'created': '2025-05-28T11:39:06', 'last-modified': '2025-05-28T11:39:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.975419'}
2025-05-28 11:39:08,520 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-28 11:39:08,520 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13382590 passed
2025-05-28 11:39:08,520 - DEBUG - ====Verifying policy data for ctest-vn-13382590 in API_Server ======
2025-05-28 11:39:08,520 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-05-28 11:39:08,525 - DEBUG - Requesting: http://10.0.0.49:8082/domain/6aacc72c-3302-4820-9ee2-a9ebe0963d25
2025-05-28 11:39:08,536 - DEBUG - Requesting: http://10.0.0.49:8082/project/164ff2de-675d-4eef-8d8d-102684bdd1af
2025-05-28 11:39:08,604 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/16f9d55e-b006-4fe7-95d1-d2a1411f2c91
2025-05-28 11:39:08,613 - DEBUG - ==>Verifying data for policy with id: 0b613678-0f38-4fe2-8d6f-0ca8b5f776f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-97832466', 'ctest-policy-allow-all-63445626']
2025-05-28 11:39:08,613 - INFO - VN ctest-vn-13382590 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-28 11:39:08,614 - DEBUG - Verifying the vn in opserver
2025-05-28 11:39:08,614 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97832466:ctest-vn-13382590 virtual network link through opserver 10.0.0.49
2025-05-28 11:39:08,614 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-05-28 11:39:08,943 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-05-28 11:39:08,995 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97832466:ctest-vn-13382590', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97832466:ctest-vn-13382590?flat'}
2025-05-28 11:39:08,996 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97832466:ctest-vn-13382590 is found in opserver
2025-05-28 11:39:09,007 - DEBUG - Do not have enough data to verify VN in agent
2025-05-28 11:39:09,013 - DEBUG - VRF ids for VN ctest-vn-13382590: {}
2025-05-28 11:39:09,013 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-05-28 11:39:09,019 - DEBUG - Requesting: http://10.0.0.49:8082/domain/6aacc72c-3302-4820-9ee2-a9ebe0963d25
2025-05-28 11:39:09,030 - DEBUG - Requesting: http://10.0.0.49:8082/project/164ff2de-675d-4eef-8d8d-102684bdd1af
2025-05-28 11:39:09,099 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/06f29410-933d-43f7-b26d-d8be8978f0cb
2025-05-28 11:39:09,112 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/06f29410-933d-43f7-b26d-d8be8978f0cb
2025-05-28 11:39:09,123 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/5e4ca84b-f810-4fcb-a50b-3a7abd184bba
2025-05-28 11:39:09,130 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/5e4ca84b-f810-4fcb-a50b-3a7abd184bba
2025-05-28 11:39:09,137 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/c07b4e9e-cbbb-48d5-b243-8d0eae015b47
2025-05-28 11:39:09,144 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-28 11:39:09,144 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/06f29410-933d-43f7-b26d-d8be8978f0cb
2025-05-28 11:39:09,154 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/5e4ca84b-f810-4fcb-a50b-3a7abd184bba
2025-05-28 11:39:09,168 - INFO - Verified VN network id 9 for VN 06f29410-933d-43f7-b26d-d8be8978f0cb
2025-05-28 11:39:09,168 - INFO - Verifications in API Server for VN ctest-vn-48365466 passed
2025-05-28 11:39:09,168 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/06f29410-933d-43f7-b26d-d8be8978f0cb
2025-05-28 11:39:09,180 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/5e4ca84b-f810-4fcb-a50b-3a7abd184bba
2025-05-28 11:39:09,187 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/5e4ca84b-f810-4fcb-a50b-3a7abd184bba
2025-05-28 11:39:09,195 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/c07b4e9e-cbbb-48d5-b243-8d0eae015b47
2025-05-28 11:39:09,207 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97832466:ctest-vn-48365466', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97832466', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '500625307502199799', 'uuid-lslong': '12857170824074424523'}, 'enable': 'true', 'created': '2025-05-28T11:39:06', 'last-modified': '2025-05-28T11:39:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.428050'}
2025-05-28 11:39:09,213 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-28 11:39:09,213 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48365466 passed
2025-05-28 11:39:09,213 - DEBUG - ====Verifying policy data for ctest-vn-48365466 in API_Server ======
2025-05-28 11:39:09,214 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-05-28 11:39:09,219 - DEBUG - Requesting: http://10.0.0.49:8082/domain/6aacc72c-3302-4820-9ee2-a9ebe0963d25
2025-05-28 11:39:09,231 - DEBUG - Requesting: http://10.0.0.49:8082/project/164ff2de-675d-4eef-8d8d-102684bdd1af
2025-05-28 11:39:09,303 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/06f29410-933d-43f7-b26d-d8be8978f0cb
2025-05-28 11:39:09,316 - DEBUG - ==>Verifying data for policy with id: 0b613678-0f38-4fe2-8d6f-0ca8b5f776f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-97832466', 'ctest-policy-allow-all-63445626']
2025-05-28 11:39:09,316 - INFO - VN ctest-vn-48365466 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-28 11:39:09,317 - DEBUG - Verifying the vn in opserver
2025-05-28 11:39:09,317 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97832466:ctest-vn-48365466 virtual network link through opserver 10.0.0.49
2025-05-28 11:39:09,317 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-05-28 11:39:09,327 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97832466:ctest-vn-48365466', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97832466:ctest-vn-48365466?flat'}
2025-05-28 11:39:09,327 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97832466:ctest-vn-48365466 is found in opserver
2025-05-28 11:39:09,347 - DEBUG - Do not have enough data to verify VN in agent
2025-05-28 11:39:09,357 - DEBUG - VRF ids for VN ctest-vn-48365466: {}
2025-05-28 11:39:09,410 - DEBUG - Services list from nova: [