2025-06-19 10:37:25,812 - INFO - Domain Default found not creating
2025-06-19 10:37:25,969 - INFO - Project ctest-TestBasicPolicy-26197193 not found, creating it
2025-06-19 10:37:26,467 - INFO - Created Project:ctest-TestBasicPolicy-26197193, ID : ee5700df-c711-4cd5-a6fb-9ea52f487f26
2025-06-19 10:37:28,121 - INFO - ================================================================================
2025-06-19 10:37:28,121 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-19 10:37:28,121 - 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-19 10:37:28,377 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with
2025-06-19 10:37:28,377 - INFO - Initial checks done. Running the testcase now
2025-06-19 10:37:28,378 - INFO -
2025-06-19 10:37:29,012 - DEBUG - Response for create_network : {'network': {'id': 'fc23a607-36bc-4b0d-a0ae-2a024e7e586a', 'name': 'ctest-vn-15969004', 'tenant_id': 'ee5700dfc7114cd5a6fb9ea52f487f26', 'project_id': 'ee5700dfc7114cd5a6fb9ea52f487f26', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26197193', 'ctest-vn-15969004'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 10:37:29,214 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6455c26-7aa0-4edf-bbd6-ec0322f69fa5', 'name': '', 'tenant_id': 'ee5700dfc7114cd5a6fb9ea52f487f26', 'network_id': 'fc23a607-36bc-4b0d-a0ae-2a024e7e586a', 'ip_version': 4, 'cidr': '89.214.168.128/26', 'allocation_pools': [{'start': '89.214.168.130', 'end': '89.214.168.190'}], 'gateway_ip': '89.214.168.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.214.168.130', 'tags': [], 'project_id': 'ee5700dfc7114cd5a6fb9ea52f487f26'}}
2025-06-19 10:37:29,235 - INFO - Created VN ctest-vn-15969004
2025-06-19 10:37:29,291 - DEBUG - VN ctest-vn-15969004 UUID is fc23a607-36bc-4b0d-a0ae-2a024e7e586a
2025-06-19 10:37:29,598 - DEBUG - Response for create_network : {'network': {'id': '5cfc3b3c-a1ca-4a8a-875e-ae6b993fca52', 'name': 'ctest-vn-47103736', 'tenant_id': 'ee5700dfc7114cd5a6fb9ea52f487f26', 'project_id': 'ee5700dfc7114cd5a6fb9ea52f487f26', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26197193', 'ctest-vn-47103736'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 10:37:29,844 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a490d773-a025-42ec-87da-38f0b0b2c7d7', 'name': '', 'tenant_id': 'ee5700dfc7114cd5a6fb9ea52f487f26', 'network_id': '5cfc3b3c-a1ca-4a8a-875e-ae6b993fca52', 'ip_version': 4, 'cidr': '99.62.225.128/26', 'allocation_pools': [{'start': '99.62.225.130', 'end': '99.62.225.190'}], 'gateway_ip': '99.62.225.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.62.225.130', 'tags': [], 'project_id': 'ee5700dfc7114cd5a6fb9ea52f487f26'}}
2025-06-19 10:37:29,863 - INFO - Created VN ctest-vn-47103736
2025-06-19 10:37:29,919 - DEBUG - VN ctest-vn-47103736 UUID is 5cfc3b3c-a1ca-4a8a-875e-ae6b993fca52
2025-06-19 10:37:30,042 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26197193:ctest-vn-15969004, 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-26197193:ctest-vn-47103736, 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-19 10:37:30,344 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc23a607-36bc-4b0d-a0ae-2a024e7e586a', 'name': 'ctest-vn-15969004', 'tenant_id': 'ee5700dfc7114cd5a6fb9ea52f487f26', 'project_id': 'ee5700dfc7114cd5a6fb9ea52f487f26', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b6455c26-7aa0-4edf-bbd6-ec0322f69fa5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26197193', 'ctest-vn-15969004'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26197193', 'ctest-policy-allow-all-24374537']], 'subnet_ipam': [{'subnet_cidr': '89.214.168.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 10:37:30,597 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5cfc3b3c-a1ca-4a8a-875e-ae6b993fca52', 'name': 'ctest-vn-47103736', 'tenant_id': 'ee5700dfc7114cd5a6fb9ea52f487f26', 'project_id': 'ee5700dfc7114cd5a6fb9ea52f487f26', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a490d773-a025-42ec-87da-38f0b0b2c7d7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26197193', 'ctest-vn-47103736'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26197193', 'ctest-policy-allow-all-24374537']], 'subnet_ipam': [{'subnet_cidr': '99.62.225.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 10:37:30,771 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-19 10:37:31,110 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-19 10:37:31,148 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e42f806f-f7e0-480d-887e-4f703f083240
2025-06-19 10:37:31,165 - DEBUG - Requesting: http://10.0.0.242:8082/project/ee5700df-c711-4cd5-a6fb-9ea52f487f26
2025-06-19 10:37:31,250 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fc23a607-36bc-4b0d-a0ae-2a024e7e586a
2025-06-19 10:37:31,264 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fc23a607-36bc-4b0d-a0ae-2a024e7e586a
2025-06-19 10:37:31,279 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1e7bcd31-df04-44e2-8f20-6c618c8d1716
2025-06-19 10:37:31,289 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1e7bcd31-df04-44e2-8f20-6c618c8d1716
2025-06-19 10:37:31,299 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8aef3c5c-5ff6-413f-963c-f8e6d3fab23a
2025-06-19 10:37:31,307 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 10:37:31,307 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fc23a607-36bc-4b0d-a0ae-2a024e7e586a
2025-06-19 10:37:31,318 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1e7bcd31-df04-44e2-8f20-6c618c8d1716
2025-06-19 10:37:31,338 - INFO - Verified VN network id 8 for VN fc23a607-36bc-4b0d-a0ae-2a024e7e586a
2025-06-19 10:37:31,338 - INFO - Verifications in API Server for VN ctest-vn-15969004 passed
2025-06-19 10:37:31,338 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fc23a607-36bc-4b0d-a0ae-2a024e7e586a
2025-06-19 10:37:31,350 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1e7bcd31-df04-44e2-8f20-6c618c8d1716
2025-06-19 10:37:31,359 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1e7bcd31-df04-44e2-8f20-6c618c8d1716
2025-06-19 10:37:31,369 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8aef3c5c-5ff6-413f-963c-f8e6d3fab23a
2025-06-19 10:37:31,384 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26197193:ctest-vn-15969004', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26197193', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18168547871656004365', 'uuid-lslong': '11578237881411328106'}, 'enable': 'true', 'created': '2025-06-19T10:37:28', 'last-modified': '2025-06-19T10:37:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.062738'}
2025-06-19 10:37:31,391 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 10:37:31,391 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15969004 passed
2025-06-19 10:37:31,391 - DEBUG - ====Verifying policy data for ctest-vn-15969004 in API_Server ======
2025-06-19 10:37:31,392 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-19 10:37:31,399 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e42f806f-f7e0-480d-887e-4f703f083240
2025-06-19 10:37:31,417 - DEBUG - Requesting: http://10.0.0.242:8082/project/ee5700df-c711-4cd5-a6fb-9ea52f487f26
2025-06-19 10:37:31,507 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fc23a607-36bc-4b0d-a0ae-2a024e7e586a
2025-06-19 10:37:31,519 - DEBUG - ==>Verifying data for policy with id: 064ebfdf-0b84-4fab-a651-0d7a2d494bc8, fqn: ['default-domain', 'ctest-TestBasicPolicy-26197193', 'ctest-policy-allow-all-24374537']
2025-06-19 10:37:31,519 - INFO - VN ctest-vn-15969004 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 10:37:31,519 - DEBUG - Verifying the vn in opserver
2025-06-19 10:37:31,520 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26197193:ctest-vn-15969004 virtual network link through opserver 10.0.0.242
2025-06-19 10:37:31,520 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-19 10:37:31,862 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-19 10:37:31,924 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26197193:ctest-vn-15969004', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26197193:ctest-vn-15969004?flat'}
2025-06-19 10:37:31,924 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26197193:ctest-vn-15969004 is found in opserver
2025-06-19 10:37:31,936 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 10:37:31,942 - DEBUG - VRF ids for VN ctest-vn-15969004: {}
2025-06-19 10:37:31,942 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-19 10:37:31,949 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e42f806f-f7e0-480d-887e-4f703f083240
2025-06-19 10:37:31,962 - DEBUG - Requesting: http://10.0.0.242:8082/project/ee5700df-c711-4cd5-a6fb-9ea52f487f26
2025-06-19 10:37:32,036 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5cfc3b3c-a1ca-4a8a-875e-ae6b993fca52
2025-06-19 10:37:32,051 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5cfc3b3c-a1ca-4a8a-875e-ae6b993fca52
2025-06-19 10:37:32,063 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f6cd62d1-c05c-419b-bfbe-f05651cedcc7
2025-06-19 10:37:32,072 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f6cd62d1-c05c-419b-bfbe-f05651cedcc7
2025-06-19 10:37:32,083 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/cde91c2a-6880-454a-b3bc-e0b140f0761f
2025-06-19 10:37:32,092 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 10:37:32,093 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5cfc3b3c-a1ca-4a8a-875e-ae6b993fca52
2025-06-19 10:37:32,107 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f6cd62d1-c05c-419b-bfbe-f05651cedcc7
2025-06-19 10:37:32,127 - INFO - Verified VN network id 9 for VN 5cfc3b3c-a1ca-4a8a-875e-ae6b993fca52
2025-06-19 10:37:32,127 - INFO - Verifications in API Server for VN ctest-vn-47103736 passed
2025-06-19 10:37:32,127 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5cfc3b3c-a1ca-4a8a-875e-ae6b993fca52
2025-06-19 10:37:32,141 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f6cd62d1-c05c-419b-bfbe-f05651cedcc7
2025-06-19 10:37:32,151 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f6cd62d1-c05c-419b-bfbe-f05651cedcc7
2025-06-19 10:37:32,162 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/cde91c2a-6880-454a-b3bc-e0b140f0761f
2025-06-19 10:37:32,186 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26197193:ctest-vn-47103736', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26197193', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6700295477218921098', 'uuid-lslong': '9754425620086901330'}, 'enable': 'true', 'created': '2025-06-19T10:37:29', 'last-modified': '2025-06-19T10:37:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.612725'}
2025-06-19 10:37:32,194 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 10:37:32,194 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47103736 passed
2025-06-19 10:37:32,195 - DEBUG - ====Verifying policy data for ctest-vn-47103736 in API_Server ======
2025-06-19 10:37:32,195 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-19 10:37:32,202 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e42f806f-f7e0-480d-887e-4f703f083240
2025-06-19 10:37:32,218 - DEBUG - Requesting: http://10.0.0.242:8082/project/ee5700df-c711-4cd5-a6fb-9ea52f487f26
2025-06-19 10:37:32,299 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5cfc3b3c-a1ca-4a8a-875e-ae6b993fca52
2025-06-19 10:37:32,310 - DEBUG - ==>Verifying data for policy with id: 064ebfdf-0b84-4fab-a651-0d7a2d494bc8, fqn: ['default-domain', 'ctest-TestBasicPolicy-26197193', 'ctest-policy-allow-all-24374537']
2025-06-19 10:37:32,311 - INFO - VN ctest-vn-47103736 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 10:37:32,311 - DEBUG - Verifying the vn in opserver
2025-06-19 10:37:32,311 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26197193:ctest-vn-47103736 virtual network link through opserver 10.0.0.242
2025-06-19 10:37:32,311 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-19 10:37:32,323 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26197193:ctest-vn-47103736', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26197193:ctest-vn-47103736?flat'}
2025-06-19 10:37:32,323 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26197193:ctest-vn-47103736 is found in opserver
2025-06-19 10:37:32,336 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 10:37:32,342 - DEBUG - VRF ids for VN ctest-vn-47103736: {}
2025-06-19 10:37:32,404 - DEBUG - Services list from nova: [