2025-01-09 02:39:04,453 - INFO - Domain Default found not creating
2025-01-09 02:39:04,593 - INFO - Project ctest-TestBasicPolicy-41809499 not found, creating it
2025-01-09 02:39:05,045 - INFO - Created Project:ctest-TestBasicPolicy-41809499, ID : b9a6d85b-e09d-4b30-92c5-2d6bceb1fe14
2025-01-09 02:39:06,444 - INFO - ================================================================================
2025-01-09 02:39:06,444 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-09 02:39:06,444 - 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-09 02:39:06,701 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.20': '0'}} with
2025-01-09 02:39:06,701 - INFO - Initial checks done. Running the testcase now
2025-01-09 02:39:06,701 - INFO -
2025-01-09 02:39:07,218 - DEBUG - Response for create_network : {'network': {'id': '90755590-e961-41dc-a871-9915033f2da6', 'name': 'ctest-vn-53210418', 'tenant_id': 'b9a6d85be09d4b3092c52d6bceb1fe14', 'project_id': 'b9a6d85be09d4b3092c52d6bceb1fe14', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41809499', 'ctest-vn-53210418'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 02:39:07,359 - DEBUG - Response for create_subnet : {'subnet': {'id': '005be13b-3048-48a5-a2da-20d80e1c2044', 'name': '', 'tenant_id': 'b9a6d85be09d4b3092c52d6bceb1fe14', 'network_id': '90755590-e961-41dc-a871-9915033f2da6', 'ip_version': 4, 'cidr': '142.18.85.0/26', 'allocation_pools': [{'start': '142.18.85.2', 'end': '142.18.85.62'}], 'gateway_ip': '142.18.85.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.18.85.2', 'tags': [], 'project_id': 'b9a6d85be09d4b3092c52d6bceb1fe14'}}
2025-01-09 02:39:07,377 - INFO - Created VN ctest-vn-53210418
2025-01-09 02:39:07,427 - DEBUG - VN ctest-vn-53210418 UUID is 90755590-e961-41dc-a871-9915033f2da6
2025-01-09 02:39:07,703 - DEBUG - Response for create_network : {'network': {'id': 'ae50f08d-20c3-4ba9-bcdb-f245eaa2e9a8', 'name': 'ctest-vn-44375477', 'tenant_id': 'b9a6d85be09d4b3092c52d6bceb1fe14', 'project_id': 'b9a6d85be09d4b3092c52d6bceb1fe14', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41809499', 'ctest-vn-44375477'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 02:39:07,852 - DEBUG - Response for create_subnet : {'subnet': {'id': 'afe678aa-2cdb-4d76-9c20-30914ec159b5', 'name': '', 'tenant_id': 'b9a6d85be09d4b3092c52d6bceb1fe14', 'network_id': 'ae50f08d-20c3-4ba9-bcdb-f245eaa2e9a8', 'ip_version': 4, 'cidr': '188.159.17.0/26', 'allocation_pools': [{'start': '188.159.17.2', 'end': '188.159.17.62'}], 'gateway_ip': '188.159.17.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.159.17.2', 'tags': [], 'project_id': 'b9a6d85be09d4b3092c52d6bceb1fe14'}}
2025-01-09 02:39:07,872 - INFO - Created VN ctest-vn-44375477
2025-01-09 02:39:07,923 - DEBUG - VN ctest-vn-44375477 UUID is ae50f08d-20c3-4ba9-bcdb-f245eaa2e9a8
2025-01-09 02:39:08,039 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41809499:ctest-vn-53210418, 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-41809499:ctest-vn-44375477, 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-09 02:39:08,352 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '90755590-e961-41dc-a871-9915033f2da6', 'name': 'ctest-vn-53210418', 'tenant_id': 'b9a6d85be09d4b3092c52d6bceb1fe14', 'project_id': 'b9a6d85be09d4b3092c52d6bceb1fe14', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['005be13b-3048-48a5-a2da-20d80e1c2044'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41809499', 'ctest-vn-53210418'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41809499', 'ctest-policy-allow-all-57757883']], 'subnet_ipam': [{'subnet_cidr': '142.18.85.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 02:39:08,588 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ae50f08d-20c3-4ba9-bcdb-f245eaa2e9a8', 'name': 'ctest-vn-44375477', 'tenant_id': 'b9a6d85be09d4b3092c52d6bceb1fe14', 'project_id': 'b9a6d85be09d4b3092c52d6bceb1fe14', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['afe678aa-2cdb-4d76-9c20-30914ec159b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41809499', 'ctest-vn-44375477'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41809499', 'ctest-policy-allow-all-57757883']], 'subnet_ipam': [{'subnet_cidr': '188.159.17.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 02:39:08,731 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-09 02:39:09,032 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-09 02:39:09,061 - DEBUG - Requesting: http://10.0.0.40:8082/domain/58a93cfa-4fe6-4499-91fe-c3b3d1d14e9f
2025-01-09 02:39:09,076 - DEBUG - Requesting: http://10.0.0.40:8082/project/b9a6d85b-e09d-4b30-92c5-2d6bceb1fe14
2025-01-09 02:39:09,148 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/90755590-e961-41dc-a871-9915033f2da6
2025-01-09 02:39:09,157 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/90755590-e961-41dc-a871-9915033f2da6
2025-01-09 02:39:09,164 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/a0137653-9127-475c-9617-aed5ef3635a6
2025-01-09 02:39:09,171 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/a0137653-9127-475c-9617-aed5ef3635a6
2025-01-09 02:39:09,177 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/ec706df9-1318-4af9-8bdd-004721eb02c1
2025-01-09 02:39:09,183 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 02:39:09,183 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/90755590-e961-41dc-a871-9915033f2da6
2025-01-09 02:39:09,189 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/a0137653-9127-475c-9617-aed5ef3635a6
2025-01-09 02:39:09,201 - INFO - Verified VN network id 9 for VN 90755590-e961-41dc-a871-9915033f2da6
2025-01-09 02:39:09,201 - INFO - Verifications in API Server for VN ctest-vn-53210418 passed
2025-01-09 02:39:09,201 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/90755590-e961-41dc-a871-9915033f2da6
2025-01-09 02:39:09,211 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/a0137653-9127-475c-9617-aed5ef3635a6
2025-01-09 02:39:09,219 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/a0137653-9127-475c-9617-aed5ef3635a6
2025-01-09 02:39:09,225 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/ec706df9-1318-4af9-8bdd-004721eb02c1
2025-01-09 02:39:09,237 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41809499:ctest-vn-53210418', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41809499', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10409320194615886300', 'uuid-lslong': '12137650786268032422'}, 'enable': 'true', 'created': '2025-01-09T02:39:07', 'last-modified': '2025-01-09T02:39:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.909834'}
2025-01-09 02:39:09,244 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 02:39:09,244 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53210418 passed
2025-01-09 02:39:09,244 - DEBUG - ====Verifying policy data for ctest-vn-53210418 in API_Server ======
2025-01-09 02:39:09,244 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-09 02:39:09,250 - DEBUG - Requesting: http://10.0.0.40:8082/domain/58a93cfa-4fe6-4499-91fe-c3b3d1d14e9f
2025-01-09 02:39:09,261 - DEBUG - Requesting: http://10.0.0.40:8082/project/b9a6d85b-e09d-4b30-92c5-2d6bceb1fe14
2025-01-09 02:39:09,333 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/90755590-e961-41dc-a871-9915033f2da6
2025-01-09 02:39:09,341 - DEBUG - ==>Verifying data for policy with id: 08850800-7491-4e71-8ecf-8b825f765dae, fqn: ['default-domain', 'ctest-TestBasicPolicy-41809499', 'ctest-policy-allow-all-57757883']
2025-01-09 02:39:09,341 - INFO - VN ctest-vn-53210418 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 02:39:09,342 - DEBUG - Verifying the vn in opserver
2025-01-09 02:39:09,342 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41809499:ctest-vn-53210418 virtual network link through opserver 10.0.0.40
2025-01-09 02:39:09,342 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-01-09 02:39:09,637 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-01-09 02:39:09,696 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41809499:ctest-vn-53210418', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41809499:ctest-vn-53210418?flat'}
2025-01-09 02:39:09,696 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41809499:ctest-vn-53210418 is found in opserver
2025-01-09 02:39:09,706 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 02:39:09,711 - DEBUG - VRF ids for VN ctest-vn-53210418: {}
2025-01-09 02:39:09,711 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-09 02:39:09,717 - DEBUG - Requesting: http://10.0.0.40:8082/domain/58a93cfa-4fe6-4499-91fe-c3b3d1d14e9f
2025-01-09 02:39:09,727 - DEBUG - Requesting: http://10.0.0.40:8082/project/b9a6d85b-e09d-4b30-92c5-2d6bceb1fe14
2025-01-09 02:39:09,795 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/ae50f08d-20c3-4ba9-bcdb-f245eaa2e9a8
2025-01-09 02:39:09,804 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/ae50f08d-20c3-4ba9-bcdb-f245eaa2e9a8
2025-01-09 02:39:09,812 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/85102141-7498-423a-9667-6f6701b9a494
2025-01-09 02:39:09,819 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/85102141-7498-423a-9667-6f6701b9a494
2025-01-09 02:39:09,826 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/4d0a6b81-06f1-48c7-9f77-0431d0aade82
2025-01-09 02:39:09,831 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-09 02:39:09,831 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/ae50f08d-20c3-4ba9-bcdb-f245eaa2e9a8
2025-01-09 02:39:09,839 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/85102141-7498-423a-9667-6f6701b9a494
2025-01-09 02:39:09,851 - INFO - Verified VN network id 10 for VN ae50f08d-20c3-4ba9-bcdb-f245eaa2e9a8
2025-01-09 02:39:09,851 - INFO - Verifications in API Server for VN ctest-vn-44375477 passed
2025-01-09 02:39:09,851 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/ae50f08d-20c3-4ba9-bcdb-f245eaa2e9a8
2025-01-09 02:39:09,858 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/85102141-7498-423a-9667-6f6701b9a494
2025-01-09 02:39:09,864 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/85102141-7498-423a-9667-6f6701b9a494
2025-01-09 02:39:09,870 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/4d0a6b81-06f1-48c7-9f77-0431d0aade82
2025-01-09 02:39:09,882 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41809499:ctest-vn-44375477', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41809499', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12560803849667038121', 'uuid-lslong': '13608737081133296040'}, 'enable': 'true', 'created': '2025-01-09T02:39:07', 'last-modified': '2025-01-09T02:39:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.317164'}
2025-01-09 02:39:09,888 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-09 02:39:09,888 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44375477 passed
2025-01-09 02:39:09,889 - DEBUG - ====Verifying policy data for ctest-vn-44375477 in API_Server ======
2025-01-09 02:39:09,889 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-09 02:39:09,894 - DEBUG - Requesting: http://10.0.0.40:8082/domain/58a93cfa-4fe6-4499-91fe-c3b3d1d14e9f
2025-01-09 02:39:09,907 - DEBUG - Requesting: http://10.0.0.40:8082/project/b9a6d85b-e09d-4b30-92c5-2d6bceb1fe14
2025-01-09 02:39:09,974 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/ae50f08d-20c3-4ba9-bcdb-f245eaa2e9a8
2025-01-09 02:39:09,982 - DEBUG - ==>Verifying data for policy with id: 08850800-7491-4e71-8ecf-8b825f765dae, fqn: ['default-domain', 'ctest-TestBasicPolicy-41809499', 'ctest-policy-allow-all-57757883']
2025-01-09 02:39:09,982 - INFO - VN ctest-vn-44375477 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 02:39:09,982 - DEBUG - Verifying the vn in opserver
2025-01-09 02:39:09,982 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41809499:ctest-vn-44375477 virtual network link through opserver 10.0.0.40
2025-01-09 02:39:09,982 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-01-09 02:39:09,992 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41809499:ctest-vn-44375477', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41809499:ctest-vn-44375477?flat'}
2025-01-09 02:39:09,992 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41809499:ctest-vn-44375477 is found in opserver
2025-01-09 02:39:10,003 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 02:39:10,008 - DEBUG - VRF ids for VN ctest-vn-44375477: {}
2025-01-09 02:39:10,061 - DEBUG - Services list from nova: [