2025-06-23 13:41:03,226 - INFO - Domain Default found not creating
2025-06-23 13:41:03,394 - INFO - Project ctest-TestBasicPolicy-48907805 not found, creating it
2025-06-23 13:41:03,884 - INFO - Created Project:ctest-TestBasicPolicy-48907805, ID : d5e85501-38eb-4f62-af61-d625c7e68c23
2025-06-23 13:41:05,528 - INFO - ================================================================================
2025-06-23 13:41:05,528 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-23 13:41:05,528 - 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-23 13:41:05,797 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-23 13:41:05,797 - INFO - Initial checks done. Running the testcase now
2025-06-23 13:41:05,797 - INFO -
2025-06-23 13:41:06,411 - DEBUG - Response for create_network : {'network': {'id': 'e7748e27-2165-457b-a521-32fea63d816e', 'name': 'ctest-vn-17144924', 'tenant_id': 'd5e8550138eb4f62af61d625c7e68c23', 'project_id': 'd5e8550138eb4f62af61d625c7e68c23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48907805', 'ctest-vn-17144924'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 13:41:06,636 - DEBUG - Response for create_subnet : {'subnet': {'id': '633229be-5c5e-4136-9c71-db9966d4efb9', 'name': '', 'tenant_id': 'd5e8550138eb4f62af61d625c7e68c23', 'network_id': 'e7748e27-2165-457b-a521-32fea63d816e', 'ip_version': 4, 'cidr': '160.151.162.192/26', 'allocation_pools': [{'start': '160.151.162.194', 'end': '160.151.162.254'}], 'gateway_ip': '160.151.162.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.151.162.194', 'tags': [], 'project_id': 'd5e8550138eb4f62af61d625c7e68c23'}}
2025-06-23 13:41:06,657 - INFO - Created VN ctest-vn-17144924
2025-06-23 13:41:06,710 - DEBUG - VN ctest-vn-17144924 UUID is e7748e27-2165-457b-a521-32fea63d816e
2025-06-23 13:41:07,032 - DEBUG - Response for create_network : {'network': {'id': '071ec3ad-1156-42f9-8cdd-67cb7bb32e75', 'name': 'ctest-vn-04194398', 'tenant_id': 'd5e8550138eb4f62af61d625c7e68c23', 'project_id': 'd5e8550138eb4f62af61d625c7e68c23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48907805', 'ctest-vn-04194398'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 13:41:07,235 - DEBUG - Response for create_subnet : {'subnet': {'id': '434fc8fc-7d89-43f8-ae5b-3842c75027bc', 'name': '', 'tenant_id': 'd5e8550138eb4f62af61d625c7e68c23', 'network_id': '071ec3ad-1156-42f9-8cdd-67cb7bb32e75', 'ip_version': 4, 'cidr': '144.13.92.128/26', 'allocation_pools': [{'start': '144.13.92.130', 'end': '144.13.92.190'}], 'gateway_ip': '144.13.92.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.13.92.130', 'tags': [], 'project_id': 'd5e8550138eb4f62af61d625c7e68c23'}}
2025-06-23 13:41:07,254 - INFO - Created VN ctest-vn-04194398
2025-06-23 13:41:07,310 - DEBUG - VN ctest-vn-04194398 UUID is 071ec3ad-1156-42f9-8cdd-67cb7bb32e75
2025-06-23 13:41:07,439 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-17144924, 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-48907805:ctest-vn-04194398, 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-23 13:41:07,772 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e7748e27-2165-457b-a521-32fea63d816e', 'name': 'ctest-vn-17144924', 'tenant_id': 'd5e8550138eb4f62af61d625c7e68c23', 'project_id': 'd5e8550138eb4f62af61d625c7e68c23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['633229be-5c5e-4136-9c71-db9966d4efb9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48907805', 'ctest-vn-17144924'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48907805', 'ctest-policy-allow-all-32423560']], 'subnet_ipam': [{'subnet_cidr': '160.151.162.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 13:41:08,018 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '071ec3ad-1156-42f9-8cdd-67cb7bb32e75', 'name': 'ctest-vn-04194398', 'tenant_id': 'd5e8550138eb4f62af61d625c7e68c23', 'project_id': 'd5e8550138eb4f62af61d625c7e68c23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['434fc8fc-7d89-43f8-ae5b-3842c75027bc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48907805', 'ctest-vn-04194398'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48907805', 'ctest-policy-allow-all-32423560']], 'subnet_ipam': [{'subnet_cidr': '144.13.92.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 13:41:08,198 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 13:41:08,534 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 13:41:08,566 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9189379d-8694-4cc0-a10d-d0e549fcaa6f
2025-06-23 13:41:08,581 - DEBUG - Requesting: http://10.0.0.254:8082/project/d5e85501-38eb-4f62-af61-d625c7e68c23
2025-06-23 13:41:08,663 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7748e27-2165-457b-a521-32fea63d816e
2025-06-23 13:41:08,678 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7748e27-2165-457b-a521-32fea63d816e
2025-06-23 13:41:08,690 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/215baf55-eebd-46e4-bcce-f29e8c26cc59
2025-06-23 13:41:08,699 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/215baf55-eebd-46e4-bcce-f29e8c26cc59
2025-06-23 13:41:08,708 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6982062e-23b1-40ab-9676-093abd4b5529
2025-06-23 13:41:08,718 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 13:41:08,718 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7748e27-2165-457b-a521-32fea63d816e
2025-06-23 13:41:08,729 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/215baf55-eebd-46e4-bcce-f29e8c26cc59
2025-06-23 13:41:08,746 - INFO - Verified VN network id 9 for VN e7748e27-2165-457b-a521-32fea63d816e
2025-06-23 13:41:08,746 - INFO - Verifications in API Server for VN ctest-vn-17144924 passed
2025-06-23 13:41:08,746 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7748e27-2165-457b-a521-32fea63d816e
2025-06-23 13:41:08,759 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/215baf55-eebd-46e4-bcce-f29e8c26cc59
2025-06-23 13:41:08,769 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/215baf55-eebd-46e4-bcce-f29e8c26cc59
2025-06-23 13:41:08,779 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6982062e-23b1-40ab-9676-093abd4b5529
2025-06-23 13:41:08,794 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-17144924', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48907805', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16678111618774943099', 'uuid-lslong': '11898847759781691758'}, 'enable': 'true', 'created': '2025-06-23T13:41:06', 'last-modified': '2025-06-23T13:41:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.065554'}
2025-06-23 13:41:08,802 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 13:41:08,803 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17144924 passed
2025-06-23 13:41:08,803 - DEBUG - ====Verifying policy data for ctest-vn-17144924 in API_Server ======
2025-06-23 13:41:08,803 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 13:41:08,810 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9189379d-8694-4cc0-a10d-d0e549fcaa6f
2025-06-23 13:41:08,823 - DEBUG - Requesting: http://10.0.0.254:8082/project/d5e85501-38eb-4f62-af61-d625c7e68c23
2025-06-23 13:41:08,905 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7748e27-2165-457b-a521-32fea63d816e
2025-06-23 13:41:08,922 - DEBUG - ==>Verifying data for policy with id: e7c153fd-c873-4219-b07e-d57c7adca358, fqn: ['default-domain', 'ctest-TestBasicPolicy-48907805', 'ctest-policy-allow-all-32423560']
2025-06-23 13:41:08,922 - INFO - VN ctest-vn-17144924 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 13:41:08,922 - DEBUG - Verifying the vn in opserver
2025-06-23 13:41:08,922 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-17144924 virtual network link through opserver 10.0.0.254
2025-06-23 13:41:08,922 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-23 13:41:09,263 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-23 13:41:09,326 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-17144924', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-17144924?flat'}
2025-06-23 13:41:09,326 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-17144924 is found in opserver
2025-06-23 13:41:09,339 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 13:41:09,344 - DEBUG - VRF ids for VN ctest-vn-17144924: {}
2025-06-23 13:41:09,344 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 13:41:09,351 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9189379d-8694-4cc0-a10d-d0e549fcaa6f
2025-06-23 13:41:09,365 - DEBUG - Requesting: http://10.0.0.254:8082/project/d5e85501-38eb-4f62-af61-d625c7e68c23
2025-06-23 13:41:09,441 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/071ec3ad-1156-42f9-8cdd-67cb7bb32e75
2025-06-23 13:41:09,455 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/071ec3ad-1156-42f9-8cdd-67cb7bb32e75
2025-06-23 13:41:09,468 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d04f7d3e-0a9c-4d10-9cd5-89ec46b2660c
2025-06-23 13:41:09,477 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d04f7d3e-0a9c-4d10-9cd5-89ec46b2660c
2025-06-23 13:41:09,485 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9c28c831-cd5b-4095-a67c-9076c0d828bc
2025-06-23 13:41:09,493 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 13:41:09,493 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/071ec3ad-1156-42f9-8cdd-67cb7bb32e75
2025-06-23 13:41:09,505 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d04f7d3e-0a9c-4d10-9cd5-89ec46b2660c
2025-06-23 13:41:09,523 - INFO - Verified VN network id 10 for VN 071ec3ad-1156-42f9-8cdd-67cb7bb32e75
2025-06-23 13:41:09,523 - INFO - Verifications in API Server for VN ctest-vn-04194398 passed
2025-06-23 13:41:09,523 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/071ec3ad-1156-42f9-8cdd-67cb7bb32e75
2025-06-23 13:41:09,535 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d04f7d3e-0a9c-4d10-9cd5-89ec46b2660c
2025-06-23 13:41:09,544 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d04f7d3e-0a9c-4d10-9cd5-89ec46b2660c
2025-06-23 13:41:09,553 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9c28c831-cd5b-4095-a67c-9076c0d828bc
2025-06-23 13:41:09,569 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-04194398', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48907805', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '513062555654439673', 'uuid-lslong': '10150383258814328437'}, 'enable': 'true', 'created': '2025-06-23T13:41:06', 'last-modified': '2025-06-23T13:41:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.573912'}
2025-06-23 13:41:09,577 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 13:41:09,577 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04194398 passed
2025-06-23 13:41:09,578 - DEBUG - ====Verifying policy data for ctest-vn-04194398 in API_Server ======
2025-06-23 13:41:09,578 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 13:41:09,585 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9189379d-8694-4cc0-a10d-d0e549fcaa6f
2025-06-23 13:41:09,599 - DEBUG - Requesting: http://10.0.0.254:8082/project/d5e85501-38eb-4f62-af61-d625c7e68c23
2025-06-23 13:41:09,730 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/071ec3ad-1156-42f9-8cdd-67cb7bb32e75
2025-06-23 13:41:09,753 - DEBUG - ==>Verifying data for policy with id: e7c153fd-c873-4219-b07e-d57c7adca358, fqn: ['default-domain', 'ctest-TestBasicPolicy-48907805', 'ctest-policy-allow-all-32423560']
2025-06-23 13:41:09,753 - INFO - VN ctest-vn-04194398 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 13:41:09,753 - DEBUG - Verifying the vn in opserver
2025-06-23 13:41:09,753 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-04194398 virtual network link through opserver 10.0.0.254
2025-06-23 13:41:09,753 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-23 13:41:09,791 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-04194398', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-04194398?flat'}
2025-06-23 13:41:09,791 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-04194398 is found in opserver
2025-06-23 13:41:09,807 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 13:41:09,817 - DEBUG - VRF ids for VN ctest-vn-04194398: {}
2025-06-23 13:41:09,928 - DEBUG - Services list from nova: [