2025-01-13 21:10:49,639 - INFO - Domain Default found not creating
2025-01-13 21:10:49,805 - INFO - Project ctest-TestBasicPolicy-30653184 not found, creating it
2025-01-13 21:10:50,265 - INFO - Created Project:ctest-TestBasicPolicy-30653184, ID : 4a70ac94-31ee-4837-8803-166a890eded9
2025-01-13 21:10:51,764 - INFO - ================================================================================
2025-01-13 21:10:51,764 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-13 21:10:51,764 - 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-13 21:10:52,019 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.13': '0'}} with
2025-01-13 21:10:52,020 - INFO - Initial checks done. Running the testcase now
2025-01-13 21:10:52,020 - INFO -
2025-01-13 21:10:52,642 - DEBUG - Response for create_network : {'network': {'id': 'fe0c3482-c4d1-401e-8fbe-8ec5914a123e', 'name': 'ctest-vn-33224283', 'tenant_id': '4a70ac9431ee48378803166a890eded9', 'project_id': '4a70ac9431ee48378803166a890eded9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30653184', 'ctest-vn-33224283'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 21:10:52,849 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ceeb6f61-2f27-478d-b4a4-8e630903ca06', 'name': '', 'tenant_id': '4a70ac9431ee48378803166a890eded9', 'network_id': 'fe0c3482-c4d1-401e-8fbe-8ec5914a123e', 'ip_version': 4, 'cidr': '168.236.114.192/26', 'allocation_pools': [{'start': '168.236.114.194', 'end': '168.236.114.254'}], 'gateway_ip': '168.236.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.236.114.194', 'tags': [], 'project_id': '4a70ac9431ee48378803166a890eded9'}}
2025-01-13 21:10:52,869 - INFO - Created VN ctest-vn-33224283
2025-01-13 21:10:52,920 - DEBUG - VN ctest-vn-33224283 UUID is fe0c3482-c4d1-401e-8fbe-8ec5914a123e
2025-01-13 21:10:53,231 - DEBUG - Response for create_network : {'network': {'id': '06152e91-714f-491b-bcb5-3c8565d942eb', 'name': 'ctest-vn-15421773', 'tenant_id': '4a70ac9431ee48378803166a890eded9', 'project_id': '4a70ac9431ee48378803166a890eded9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30653184', 'ctest-vn-15421773'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 21:10:53,473 - DEBUG - Response for create_subnet : {'subnet': {'id': '45e8727a-7b0f-45f2-927f-57c9a8993a1d', 'name': '', 'tenant_id': '4a70ac9431ee48378803166a890eded9', 'network_id': '06152e91-714f-491b-bcb5-3c8565d942eb', 'ip_version': 4, 'cidr': '194.162.13.128/26', 'allocation_pools': [{'start': '194.162.13.130', 'end': '194.162.13.190'}], 'gateway_ip': '194.162.13.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.162.13.130', 'tags': [], 'project_id': '4a70ac9431ee48378803166a890eded9'}}
2025-01-13 21:10:53,494 - INFO - Created VN ctest-vn-15421773
2025-01-13 21:10:53,548 - DEBUG - VN ctest-vn-15421773 UUID is 06152e91-714f-491b-bcb5-3c8565d942eb
2025-01-13 21:10:53,667 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30653184:ctest-vn-33224283, 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-30653184:ctest-vn-15421773, 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-13 21:10:53,971 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe0c3482-c4d1-401e-8fbe-8ec5914a123e', 'name': 'ctest-vn-33224283', 'tenant_id': '4a70ac9431ee48378803166a890eded9', 'project_id': '4a70ac9431ee48378803166a890eded9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ceeb6f61-2f27-478d-b4a4-8e630903ca06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30653184', 'ctest-vn-33224283'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30653184', 'ctest-policy-allow-all-99246370']], 'subnet_ipam': [{'subnet_cidr': '168.236.114.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 21:10:54,212 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '06152e91-714f-491b-bcb5-3c8565d942eb', 'name': 'ctest-vn-15421773', 'tenant_id': '4a70ac9431ee48378803166a890eded9', 'project_id': '4a70ac9431ee48378803166a890eded9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['45e8727a-7b0f-45f2-927f-57c9a8993a1d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30653184', 'ctest-vn-15421773'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30653184', 'ctest-policy-allow-all-99246370']], 'subnet_ipam': [{'subnet_cidr': '194.162.13.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 21:10:54,364 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-13 21:10:54,668 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-13 21:10:54,700 - DEBUG - Requesting: http://10.0.0.17:8082/domain/f5a12c2d-d6e7-45cb-9393-9521bd138ed2
2025-01-13 21:10:54,716 - DEBUG - Requesting: http://10.0.0.17:8082/project/4a70ac94-31ee-4837-8803-166a890eded9
2025-01-13 21:10:54,796 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/fe0c3482-c4d1-401e-8fbe-8ec5914a123e
2025-01-13 21:10:54,808 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/fe0c3482-c4d1-401e-8fbe-8ec5914a123e
2025-01-13 21:10:54,821 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4707c213-f75e-4606-b4fa-184cb369a096
2025-01-13 21:10:54,830 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4707c213-f75e-4606-b4fa-184cb369a096
2025-01-13 21:10:54,838 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/84d72547-cdda-496d-a760-2282055e4a6e
2025-01-13 21:10:54,846 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 21:10:54,846 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/fe0c3482-c4d1-401e-8fbe-8ec5914a123e
2025-01-13 21:10:54,857 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4707c213-f75e-4606-b4fa-184cb369a096
2025-01-13 21:10:54,874 - INFO - Verified VN network id 8 for VN fe0c3482-c4d1-401e-8fbe-8ec5914a123e
2025-01-13 21:10:54,875 - INFO - Verifications in API Server for VN ctest-vn-33224283 passed
2025-01-13 21:10:54,875 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/fe0c3482-c4d1-401e-8fbe-8ec5914a123e
2025-01-13 21:10:54,887 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4707c213-f75e-4606-b4fa-184cb369a096
2025-01-13 21:10:54,896 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4707c213-f75e-4606-b4fa-184cb369a096
2025-01-13 21:10:54,906 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/84d72547-cdda-496d-a760-2282055e4a6e
2025-01-13 21:10:54,922 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30653184:ctest-vn-33224283', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30653184', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18306064321606664222', 'uuid-lslong': '10357873172195971646'}, 'enable': 'true', 'created': '2025-01-13T21:10:52', 'last-modified': '2025-01-13T21:10:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.979834'}
2025-01-13 21:10:54,931 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 21:10:54,931 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33224283 passed
2025-01-13 21:10:54,931 - DEBUG - ====Verifying policy data for ctest-vn-33224283 in API_Server ======
2025-01-13 21:10:54,931 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-13 21:10:54,938 - DEBUG - Requesting: http://10.0.0.17:8082/domain/f5a12c2d-d6e7-45cb-9393-9521bd138ed2
2025-01-13 21:10:54,953 - DEBUG - Requesting: http://10.0.0.17:8082/project/4a70ac94-31ee-4837-8803-166a890eded9
2025-01-13 21:10:55,031 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/fe0c3482-c4d1-401e-8fbe-8ec5914a123e
2025-01-13 21:10:55,042 - DEBUG - ==>Verifying data for policy with id: 63599209-729a-4af0-9fa0-40a5196d9678, fqn: ['default-domain', 'ctest-TestBasicPolicy-30653184', 'ctest-policy-allow-all-99246370']
2025-01-13 21:10:55,042 - INFO - VN ctest-vn-33224283 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 21:10:55,042 - DEBUG - Verifying the vn in opserver
2025-01-13 21:10:55,042 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30653184:ctest-vn-33224283 virtual network link through opserver 10.0.0.17
2025-01-13 21:10:55,042 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-13 21:10:55,345 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-13 21:10:55,404 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30653184:ctest-vn-33224283', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30653184:ctest-vn-33224283?flat'}
2025-01-13 21:10:55,404 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30653184:ctest-vn-33224283 is found in opserver
2025-01-13 21:10:55,416 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 21:10:55,421 - DEBUG - VRF ids for VN ctest-vn-33224283: {}
2025-01-13 21:10:55,421 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-13 21:10:55,429 - DEBUG - Requesting: http://10.0.0.17:8082/domain/f5a12c2d-d6e7-45cb-9393-9521bd138ed2
2025-01-13 21:10:55,446 - DEBUG - Requesting: http://10.0.0.17:8082/project/4a70ac94-31ee-4837-8803-166a890eded9
2025-01-13 21:10:55,522 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/06152e91-714f-491b-bcb5-3c8565d942eb
2025-01-13 21:10:55,543 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/06152e91-714f-491b-bcb5-3c8565d942eb
2025-01-13 21:10:55,553 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/fc5a8ee1-11b3-419b-ba91-b59b76a3bc10
2025-01-13 21:10:55,561 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/fc5a8ee1-11b3-419b-ba91-b59b76a3bc10
2025-01-13 21:10:55,568 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/26610606-eda1-4d10-a0da-cb153b038cb6
2025-01-13 21:10:55,575 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 21:10:55,575 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/06152e91-714f-491b-bcb5-3c8565d942eb
2025-01-13 21:10:55,585 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/fc5a8ee1-11b3-419b-ba91-b59b76a3bc10
2025-01-13 21:10:55,602 - INFO - Verified VN network id 9 for VN 06152e91-714f-491b-bcb5-3c8565d942eb
2025-01-13 21:10:55,602 - INFO - Verifications in API Server for VN ctest-vn-15421773 passed
2025-01-13 21:10:55,603 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/06152e91-714f-491b-bcb5-3c8565d942eb
2025-01-13 21:10:55,615 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/fc5a8ee1-11b3-419b-ba91-b59b76a3bc10
2025-01-13 21:10:55,624 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/fc5a8ee1-11b3-419b-ba91-b59b76a3bc10
2025-01-13 21:10:55,633 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/26610606-eda1-4d10-a0da-cb153b038cb6
2025-01-13 21:10:55,646 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30653184:ctest-vn-15421773', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30653184', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '438307740944648475', 'uuid-lslong': '13597841193552134891'}, 'enable': 'true', 'created': '2025-01-13T21:10:53', 'last-modified': '2025-01-13T21:10:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.461673'}
2025-01-13 21:10:55,654 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 21:10:55,654 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15421773 passed
2025-01-13 21:10:55,654 - DEBUG - ====Verifying policy data for ctest-vn-15421773 in API_Server ======
2025-01-13 21:10:55,654 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-13 21:10:55,660 - DEBUG - Requesting: http://10.0.0.17:8082/domain/f5a12c2d-d6e7-45cb-9393-9521bd138ed2
2025-01-13 21:10:55,672 - DEBUG - Requesting: http://10.0.0.17:8082/project/4a70ac94-31ee-4837-8803-166a890eded9
2025-01-13 21:10:55,749 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/06152e91-714f-491b-bcb5-3c8565d942eb
2025-01-13 21:10:55,761 - DEBUG - ==>Verifying data for policy with id: 63599209-729a-4af0-9fa0-40a5196d9678, fqn: ['default-domain', 'ctest-TestBasicPolicy-30653184', 'ctest-policy-allow-all-99246370']
2025-01-13 21:10:55,761 - INFO - VN ctest-vn-15421773 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 21:10:55,761 - DEBUG - Verifying the vn in opserver
2025-01-13 21:10:55,761 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30653184:ctest-vn-15421773 virtual network link through opserver 10.0.0.17
2025-01-13 21:10:55,761 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-13 21:10:55,774 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30653184:ctest-vn-15421773', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30653184:ctest-vn-15421773?flat'}
2025-01-13 21:10:55,774 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30653184:ctest-vn-15421773 is found in opserver
2025-01-13 21:10:55,787 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 21:10:55,792 - DEBUG - VRF ids for VN ctest-vn-15421773: {}
2025-01-13 21:10:55,856 - DEBUG - Services list from nova: [