2025-06-01 15:20:57,762 - INFO - Domain Default found not creating
2025-06-01 15:20:57,900 - INFO - Project ctest-TestBasicPolicy-01286794 not found, creating it
2025-06-01 15:20:58,337 - INFO - Created Project:ctest-TestBasicPolicy-01286794, ID : 483ff39a-d5fc-47c8-90f7-55df7146949f
2025-06-01 15:20:59,864 - INFO - ================================================================================
2025-06-01 15:20:59,864 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-01 15:20:59,864 - 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-06-01 15:21:00,126 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-01 15:21:00,126 - INFO - Initial checks done. Running the testcase now
2025-06-01 15:21:00,126 - INFO -
2025-06-01 15:21:00,695 - DEBUG - Response for create_network : {'network': {'id': 'e64684dc-49e5-43c1-a431-3dc13fb70a4f', 'name': 'ctest-vn-89610305', 'tenant_id': '483ff39ad5fc47c890f755df7146949f', 'project_id': '483ff39ad5fc47c890f755df7146949f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01286794', 'ctest-vn-89610305'], 'port_security_enabled': True, 'description': ''}}
2025-06-01 15:21:00,900 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ab5736f-99e4-49b8-82e9-ed06c8521d3a', 'name': '', 'tenant_id': '483ff39ad5fc47c890f755df7146949f', 'network_id': 'e64684dc-49e5-43c1-a431-3dc13fb70a4f', 'ip_version': 4, 'cidr': '186.216.225.128/26', 'allocation_pools': [{'start': '186.216.225.130', 'end': '186.216.225.190'}], 'gateway_ip': '186.216.225.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.216.225.130', 'tags': [], 'project_id': '483ff39ad5fc47c890f755df7146949f'}}
2025-06-01 15:21:00,917 - INFO - Created VN ctest-vn-89610305
2025-06-01 15:21:00,971 - DEBUG - VN ctest-vn-89610305 UUID is e64684dc-49e5-43c1-a431-3dc13fb70a4f
2025-06-01 15:21:01,283 - DEBUG - Response for create_network : {'network': {'id': '8c024d49-8e31-4854-85cc-3a4efb4d78f8', 'name': 'ctest-vn-78561682', 'tenant_id': '483ff39ad5fc47c890f755df7146949f', 'project_id': '483ff39ad5fc47c890f755df7146949f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01286794', 'ctest-vn-78561682'], 'port_security_enabled': True, 'description': ''}}
2025-06-01 15:21:01,424 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b258f262-e5f6-4563-bb8f-8432e85eafdf', 'name': '', 'tenant_id': '483ff39ad5fc47c890f755df7146949f', 'network_id': '8c024d49-8e31-4854-85cc-3a4efb4d78f8', 'ip_version': 4, 'cidr': '4.85.12.192/26', 'allocation_pools': [{'start': '4.85.12.194', 'end': '4.85.12.254'}], 'gateway_ip': '4.85.12.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.85.12.194', 'tags': [], 'project_id': '483ff39ad5fc47c890f755df7146949f'}}
2025-06-01 15:21:01,440 - INFO - Created VN ctest-vn-78561682
2025-06-01 15:21:01,491 - DEBUG - VN ctest-vn-78561682 UUID is 8c024d49-8e31-4854-85cc-3a4efb4d78f8
2025-06-01 15:21:01,643 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-89610305, 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-01286794:ctest-vn-78561682, 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-06-01 15:21:01,936 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e64684dc-49e5-43c1-a431-3dc13fb70a4f', 'name': 'ctest-vn-89610305', 'tenant_id': '483ff39ad5fc47c890f755df7146949f', 'project_id': '483ff39ad5fc47c890f755df7146949f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ab5736f-99e4-49b8-82e9-ed06c8521d3a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01286794', 'ctest-vn-89610305'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01286794', 'ctest-policy-allow-all-06317572']], 'subnet_ipam': [{'subnet_cidr': '186.216.225.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-01 15:21:02,167 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c024d49-8e31-4854-85cc-3a4efb4d78f8', 'name': 'ctest-vn-78561682', 'tenant_id': '483ff39ad5fc47c890f755df7146949f', 'project_id': '483ff39ad5fc47c890f755df7146949f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b258f262-e5f6-4563-bb8f-8432e85eafdf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01286794', 'ctest-vn-78561682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01286794', 'ctest-policy-allow-all-06317572']], 'subnet_ipam': [{'subnet_cidr': '4.85.12.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-01 15:21:02,315 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-01 15:21:02,659 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-01 15:21:02,687 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de24177-6521-4d98-952d-4140375f1a5e
2025-06-01 15:21:02,700 - DEBUG - Requesting: http://10.0.0.38:8082/project/483ff39a-d5fc-47c8-90f7-55df7146949f
2025-06-01 15:21:02,779 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e64684dc-49e5-43c1-a431-3dc13fb70a4f
2025-06-01 15:21:02,791 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e64684dc-49e5-43c1-a431-3dc13fb70a4f
2025-06-01 15:21:02,800 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f7aa9f75-5cf3-45ab-ae83-386497d954c8
2025-06-01 15:21:02,807 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f7aa9f75-5cf3-45ab-ae83-386497d954c8
2025-06-01 15:21:02,814 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7c062f4b-7ab9-4717-ab35-aa2e9fd720db
2025-06-01 15:21:02,820 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-01 15:21:02,820 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e64684dc-49e5-43c1-a431-3dc13fb70a4f
2025-06-01 15:21:02,829 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f7aa9f75-5cf3-45ab-ae83-386497d954c8
2025-06-01 15:21:02,842 - INFO - Verified VN network id 8 for VN e64684dc-49e5-43c1-a431-3dc13fb70a4f
2025-06-01 15:21:02,843 - INFO - Verifications in API Server for VN ctest-vn-89610305 passed
2025-06-01 15:21:02,843 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e64684dc-49e5-43c1-a431-3dc13fb70a4f
2025-06-01 15:21:02,852 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f7aa9f75-5cf3-45ab-ae83-386497d954c8
2025-06-01 15:21:02,859 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f7aa9f75-5cf3-45ab-ae83-386497d954c8
2025-06-01 15:21:02,865 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7c062f4b-7ab9-4717-ab35-aa2e9fd720db
2025-06-01 15:21:02,877 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-89610305', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01286794', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16593095958760604609', 'uuid-lslong': '11831305596285946447'}, 'enable': 'true', 'created': '2025-06-01T15:21:00', 'last-modified': '2025-06-01T15:21:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.969291'}
2025-06-01 15:21:02,883 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-01 15:21:02,884 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89610305 passed
2025-06-01 15:21:02,884 - DEBUG - ====Verifying policy data for ctest-vn-89610305 in API_Server ======
2025-06-01 15:21:02,884 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-01 15:21:02,889 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de24177-6521-4d98-952d-4140375f1a5e
2025-06-01 15:21:02,900 - DEBUG - Requesting: http://10.0.0.38:8082/project/483ff39a-d5fc-47c8-90f7-55df7146949f
2025-06-01 15:21:02,973 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e64684dc-49e5-43c1-a431-3dc13fb70a4f
2025-06-01 15:21:02,984 - DEBUG - ==>Verifying data for policy with id: fabd7da6-b9aa-4250-8247-54d63b87f8ef, fqn: ['default-domain', 'ctest-TestBasicPolicy-01286794', 'ctest-policy-allow-all-06317572']
2025-06-01 15:21:02,984 - INFO - VN ctest-vn-89610305 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-01 15:21:02,984 - DEBUG - Verifying the vn in opserver
2025-06-01 15:21:02,984 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-89610305 virtual network link through opserver 10.0.0.38
2025-06-01 15:21:02,984 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-01 15:21:03,319 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-01 15:21:03,375 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-89610305', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-89610305?flat'}
2025-06-01 15:21:03,375 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-89610305 is found in opserver
2025-06-01 15:21:03,386 - DEBUG - Do not have enough data to verify VN in agent
2025-06-01 15:21:03,391 - DEBUG - VRF ids for VN ctest-vn-89610305: {}
2025-06-01 15:21:03,391 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-01 15:21:03,396 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de24177-6521-4d98-952d-4140375f1a5e
2025-06-01 15:21:03,408 - DEBUG - Requesting: http://10.0.0.38:8082/project/483ff39a-d5fc-47c8-90f7-55df7146949f
2025-06-01 15:21:03,482 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8c024d49-8e31-4854-85cc-3a4efb4d78f8
2025-06-01 15:21:03,495 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8c024d49-8e31-4854-85cc-3a4efb4d78f8
2025-06-01 15:21:03,505 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53de1993-036f-4652-858a-0b6d60c7b420
2025-06-01 15:21:03,517 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53de1993-036f-4652-858a-0b6d60c7b420
2025-06-01 15:21:03,524 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b161e4b5-7b43-4a1f-9d8d-e32ec32d2718
2025-06-01 15:21:03,530 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-01 15:21:03,530 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8c024d49-8e31-4854-85cc-3a4efb4d78f8
2025-06-01 15:21:03,543 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53de1993-036f-4652-858a-0b6d60c7b420
2025-06-01 15:21:03,561 - INFO - Verified VN network id 9 for VN 8c024d49-8e31-4854-85cc-3a4efb4d78f8
2025-06-01 15:21:03,561 - INFO - Verifications in API Server for VN ctest-vn-78561682 passed
2025-06-01 15:21:03,561 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8c024d49-8e31-4854-85cc-3a4efb4d78f8
2025-06-01 15:21:03,571 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53de1993-036f-4652-858a-0b6d60c7b420
2025-06-01 15:21:03,578 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53de1993-036f-4652-858a-0b6d60c7b420
2025-06-01 15:21:03,587 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b161e4b5-7b43-4a1f-9d8d-e32ec32d2718
2025-06-01 15:21:03,602 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-78561682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01286794', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10088711093576878164', 'uuid-lslong': '9641145013191407864'}, 'enable': 'true', 'created': '2025-06-01T15:21:01', 'last-modified': '2025-06-01T15:21:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.449060'}
2025-06-01 15:21:03,608 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-01 15:21:03,608 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78561682 passed
2025-06-01 15:21:03,608 - DEBUG - ====Verifying policy data for ctest-vn-78561682 in API_Server ======
2025-06-01 15:21:03,608 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-01 15:21:03,615 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de24177-6521-4d98-952d-4140375f1a5e
2025-06-01 15:21:03,629 - DEBUG - Requesting: http://10.0.0.38:8082/project/483ff39a-d5fc-47c8-90f7-55df7146949f
2025-06-01 15:21:03,717 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8c024d49-8e31-4854-85cc-3a4efb4d78f8
2025-06-01 15:21:03,731 - DEBUG - ==>Verifying data for policy with id: fabd7da6-b9aa-4250-8247-54d63b87f8ef, fqn: ['default-domain', 'ctest-TestBasicPolicy-01286794', 'ctest-policy-allow-all-06317572']
2025-06-01 15:21:03,731 - INFO - VN ctest-vn-78561682 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-01 15:21:03,731 - DEBUG - Verifying the vn in opserver
2025-06-01 15:21:03,731 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-78561682 virtual network link through opserver 10.0.0.38
2025-06-01 15:21:03,731 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-01 15:21:03,743 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-78561682', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-78561682?flat'}
2025-06-01 15:21:03,743 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-78561682 is found in opserver
2025-06-01 15:21:03,754 - DEBUG - Do not have enough data to verify VN in agent
2025-06-01 15:21:03,759 - DEBUG - VRF ids for VN ctest-vn-78561682: {}
2025-06-01 15:21:03,812 - DEBUG - Services list from nova: [