2025-01-08 09:18:34,165 - INFO - Domain Default found not creating
2025-01-08 09:18:34,330 - INFO - Project ctest-TestBasicPolicy-80242886 not found, creating it
2025-01-08 09:18:34,831 - INFO - Created Project:ctest-TestBasicPolicy-80242886, ID : cce5326e-bc64-41e2-bb68-50edc580c92e
2025-01-08 09:18:36,344 - INFO - ================================================================================
2025-01-08 09:18:36,344 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-08 09:18:36,344 - 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-01-08 09:18:36,606 - DEBUG - Nothing to compare xmpp stats {'10.0.0.53': {'10.20.0.27': '0'}} with
2025-01-08 09:18:36,607 - INFO - Initial checks done. Running the testcase now
2025-01-08 09:18:36,607 - INFO -
2025-01-08 09:18:37,175 - DEBUG - Response for create_network : {'network': {'id': 'b8e93371-b32d-419b-8563-2d9598cdfebc', 'name': 'ctest-vn-61527652', 'tenant_id': 'cce5326ebc6441e2bb6850edc580c92e', 'project_id': 'cce5326ebc6441e2bb6850edc580c92e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80242886', 'ctest-vn-61527652'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 09:18:37,358 - DEBUG - Response for create_subnet : {'subnet': {'id': '6705ee70-8cea-45fb-94de-ea828d4ea1dd', 'name': '', 'tenant_id': 'cce5326ebc6441e2bb6850edc580c92e', 'network_id': 'b8e93371-b32d-419b-8563-2d9598cdfebc', 'ip_version': 4, 'cidr': '162.138.45.192/26', 'allocation_pools': [{'start': '162.138.45.194', 'end': '162.138.45.254'}], 'gateway_ip': '162.138.45.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.138.45.194', 'tags': [], 'project_id': 'cce5326ebc6441e2bb6850edc580c92e'}}
2025-01-08 09:18:37,381 - INFO - Created VN ctest-vn-61527652
2025-01-08 09:18:37,435 - DEBUG - VN ctest-vn-61527652 UUID is b8e93371-b32d-419b-8563-2d9598cdfebc
2025-01-08 09:18:37,772 - DEBUG - Response for create_network : {'network': {'id': 'e82cfda4-68a8-4443-a7de-0f9d83b625ec', 'name': 'ctest-vn-27891455', 'tenant_id': 'cce5326ebc6441e2bb6850edc580c92e', 'project_id': 'cce5326ebc6441e2bb6850edc580c92e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80242886', 'ctest-vn-27891455'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 09:18:38,013 - DEBUG - Response for create_subnet : {'subnet': {'id': '0123911b-08ed-4aa8-96a3-c663a2450e3d', 'name': '', 'tenant_id': 'cce5326ebc6441e2bb6850edc580c92e', 'network_id': 'e82cfda4-68a8-4443-a7de-0f9d83b625ec', 'ip_version': 4, 'cidr': '212.186.194.0/26', 'allocation_pools': [{'start': '212.186.194.2', 'end': '212.186.194.62'}], 'gateway_ip': '212.186.194.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.186.194.2', 'tags': [], 'project_id': 'cce5326ebc6441e2bb6850edc580c92e'}}
2025-01-08 09:18:38,033 - INFO - Created VN ctest-vn-27891455
2025-01-08 09:18:38,088 - DEBUG - VN ctest-vn-27891455 UUID is e82cfda4-68a8-4443-a7de-0f9d83b625ec
2025-01-08 09:18:38,220 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-61527652, 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-80242886:ctest-vn-27891455, 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-01-08 09:18:38,521 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8e93371-b32d-419b-8563-2d9598cdfebc', 'name': 'ctest-vn-61527652', 'tenant_id': 'cce5326ebc6441e2bb6850edc580c92e', 'project_id': 'cce5326ebc6441e2bb6850edc580c92e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6705ee70-8cea-45fb-94de-ea828d4ea1dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80242886', 'ctest-vn-61527652'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80242886', 'ctest-policy-allow-all-12133021']], 'subnet_ipam': [{'subnet_cidr': '162.138.45.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 09:18:38,835 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e82cfda4-68a8-4443-a7de-0f9d83b625ec', 'name': 'ctest-vn-27891455', 'tenant_id': 'cce5326ebc6441e2bb6850edc580c92e', 'project_id': 'cce5326ebc6441e2bb6850edc580c92e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0123911b-08ed-4aa8-96a3-c663a2450e3d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80242886', 'ctest-vn-27891455'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80242886', 'ctest-policy-allow-all-12133021']], 'subnet_ipam': [{'subnet_cidr': '212.186.194.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 09:18:38,995 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2025-01-08 09:18:39,292 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2025-01-08 09:18:39,322 - DEBUG - Requesting: http://10.0.0.53:8082/domain/cfef4e17-2a1e-4fb7-a221-0760d3a64b56
2025-01-08 09:18:39,338 - DEBUG - Requesting: http://10.0.0.53:8082/project/cce5326e-bc64-41e2-bb68-50edc580c92e
2025-01-08 09:18:39,411 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/b8e93371-b32d-419b-8563-2d9598cdfebc
2025-01-08 09:18:39,424 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/b8e93371-b32d-419b-8563-2d9598cdfebc
2025-01-08 09:18:39,436 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/278365cd-d972-487e-9f7b-9dec5e61baca
2025-01-08 09:18:39,444 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/278365cd-d972-487e-9f7b-9dec5e61baca
2025-01-08 09:18:39,452 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/47532b28-86f7-4d76-b461-462fec78f6da
2025-01-08 09:18:39,460 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 09:18:39,460 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/b8e93371-b32d-419b-8563-2d9598cdfebc
2025-01-08 09:18:39,471 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/278365cd-d972-487e-9f7b-9dec5e61baca
2025-01-08 09:18:39,486 - INFO - Verified VN network id 9 for VN b8e93371-b32d-419b-8563-2d9598cdfebc
2025-01-08 09:18:39,487 - INFO - Verifications in API Server for VN ctest-vn-61527652 passed
2025-01-08 09:18:39,487 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/b8e93371-b32d-419b-8563-2d9598cdfebc
2025-01-08 09:18:39,500 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/278365cd-d972-487e-9f7b-9dec5e61baca
2025-01-08 09:18:39,510 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/278365cd-d972-487e-9f7b-9dec5e61baca
2025-01-08 09:18:39,519 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/47532b28-86f7-4d76-b461-462fec78f6da
2025-01-08 09:18:39,533 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-61527652', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80242886', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13324237535982731675', 'uuid-lslong': '9611576150275784380'}, 'enable': 'true', 'created': '2025-01-08T09:18:37', 'last-modified': '2025-01-08T09:18:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.031220'}
2025-01-08 09:18:39,541 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 09:18:39,541 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61527652 passed
2025-01-08 09:18:39,541 - DEBUG - ====Verifying policy data for ctest-vn-61527652 in API_Server ======
2025-01-08 09:18:39,541 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2025-01-08 09:18:39,547 - DEBUG - Requesting: http://10.0.0.53:8082/domain/cfef4e17-2a1e-4fb7-a221-0760d3a64b56
2025-01-08 09:18:39,560 - DEBUG - Requesting: http://10.0.0.53:8082/project/cce5326e-bc64-41e2-bb68-50edc580c92e
2025-01-08 09:18:39,638 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/b8e93371-b32d-419b-8563-2d9598cdfebc
2025-01-08 09:18:39,649 - DEBUG - ==>Verifying data for policy with id: 9038ff87-8be8-466f-8f3f-6808b9c792ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-80242886', 'ctest-policy-allow-all-12133021']
2025-01-08 09:18:39,649 - INFO - VN ctest-vn-61527652 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 09:18:39,649 - DEBUG - Verifying the vn in opserver
2025-01-08 09:18:39,649 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-61527652 virtual network link through opserver 10.0.0.53
2025-01-08 09:18:39,649 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks
2025-01-08 09:18:39,944 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks
2025-01-08 09:18:40,007 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-61527652', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-61527652?flat'}
2025-01-08 09:18:40,007 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-61527652 is found in opserver
2025-01-08 09:18:40,019 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 09:18:40,025 - DEBUG - VRF ids for VN ctest-vn-61527652: {}
2025-01-08 09:18:40,025 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2025-01-08 09:18:40,032 - DEBUG - Requesting: http://10.0.0.53:8082/domain/cfef4e17-2a1e-4fb7-a221-0760d3a64b56
2025-01-08 09:18:40,045 - DEBUG - Requesting: http://10.0.0.53:8082/project/cce5326e-bc64-41e2-bb68-50edc580c92e
2025-01-08 09:18:40,126 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/e82cfda4-68a8-4443-a7de-0f9d83b625ec
2025-01-08 09:18:40,151 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/e82cfda4-68a8-4443-a7de-0f9d83b625ec
2025-01-08 09:18:40,162 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/df933dbd-fd8f-4f00-810d-cd45c0b57c44
2025-01-08 09:18:40,170 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/df933dbd-fd8f-4f00-810d-cd45c0b57c44
2025-01-08 09:18:40,178 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/372186c2-1bec-4388-9d09-6ec3554eb85f
2025-01-08 09:18:40,186 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 09:18:40,186 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/e82cfda4-68a8-4443-a7de-0f9d83b625ec
2025-01-08 09:18:40,196 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/df933dbd-fd8f-4f00-810d-cd45c0b57c44
2025-01-08 09:18:40,213 - INFO - Verified VN network id 10 for VN e82cfda4-68a8-4443-a7de-0f9d83b625ec
2025-01-08 09:18:40,213 - INFO - Verifications in API Server for VN ctest-vn-27891455 passed
2025-01-08 09:18:40,214 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/e82cfda4-68a8-4443-a7de-0f9d83b625ec
2025-01-08 09:18:40,226 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/df933dbd-fd8f-4f00-810d-cd45c0b57c44
2025-01-08 09:18:40,234 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/df933dbd-fd8f-4f00-810d-cd45c0b57c44
2025-01-08 09:18:40,243 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/372186c2-1bec-4388-9d09-6ec3554eb85f
2025-01-08 09:18:40,257 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-27891455', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80242886', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16730025598346871875', 'uuid-lslong': '12096122818357765612'}, 'enable': 'true', 'created': '2025-01-08T09:18:37', 'last-modified': '2025-01-08T09:18:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.501786'}
2025-01-08 09:18:40,265 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 09:18:40,266 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27891455 passed
2025-01-08 09:18:40,266 - DEBUG - ====Verifying policy data for ctest-vn-27891455 in API_Server ======
2025-01-08 09:18:40,266 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2025-01-08 09:18:40,274 - DEBUG - Requesting: http://10.0.0.53:8082/domain/cfef4e17-2a1e-4fb7-a221-0760d3a64b56
2025-01-08 09:18:40,288 - DEBUG - Requesting: http://10.0.0.53:8082/project/cce5326e-bc64-41e2-bb68-50edc580c92e
2025-01-08 09:18:40,365 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/e82cfda4-68a8-4443-a7de-0f9d83b625ec
2025-01-08 09:18:40,377 - DEBUG - ==>Verifying data for policy with id: 9038ff87-8be8-466f-8f3f-6808b9c792ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-80242886', 'ctest-policy-allow-all-12133021']
2025-01-08 09:18:40,377 - INFO - VN ctest-vn-27891455 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 09:18:40,377 - DEBUG - Verifying the vn in opserver
2025-01-08 09:18:40,377 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-27891455 virtual network link through opserver 10.0.0.53
2025-01-08 09:18:40,377 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks
2025-01-08 09:18:40,388 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-27891455', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-27891455?flat'}
2025-01-08 09:18:40,388 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-27891455 is found in opserver
2025-01-08 09:18:40,400 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 09:18:40,407 - DEBUG - VRF ids for VN ctest-vn-27891455: {}
2025-01-08 09:18:40,468 - DEBUG - Services list from nova: [