2025-02-10 02:26:40,986 - INFO - Domain Default found not creating
2025-02-10 02:26:41,124 - INFO - Project ctest-TestBasicPolicy-32668640 not found, creating it
2025-02-10 02:26:41,585 - INFO - Created Project:ctest-TestBasicPolicy-32668640, ID : 58a07ddf-a494-4c03-b460-8206a91a9a39
2025-02-10 02:26:43,118 - INFO - ================================================================================
2025-02-10 02:26:43,118 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-10 02:26:43,118 - 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-02-10 02:26:43,378 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with
2025-02-10 02:26:43,378 - INFO - Initial checks done. Running the testcase now
2025-02-10 02:26:43,378 - INFO -
2025-02-10 02:26:43,958 - DEBUG - Response for create_network : {'network': {'id': 'a1821e2f-8ddb-4e11-8f0b-b6333a681b5c', 'name': 'ctest-vn-36112225', 'tenant_id': '58a07ddfa4944c03b4608206a91a9a39', 'project_id': '58a07ddfa4944c03b4608206a91a9a39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32668640', 'ctest-vn-36112225'], 'port_security_enabled': True, 'description': ''}}
2025-02-10 02:26:44,170 - DEBUG - Response for create_subnet : {'subnet': {'id': '62d26431-a79a-4e75-a6df-af8d01494622', 'name': '', 'tenant_id': '58a07ddfa4944c03b4608206a91a9a39', 'network_id': 'a1821e2f-8ddb-4e11-8f0b-b6333a681b5c', 'ip_version': 4, 'cidr': '223.169.86.128/26', 'allocation_pools': [{'start': '223.169.86.130', 'end': '223.169.86.190'}], 'gateway_ip': '223.169.86.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.169.86.130', 'tags': [], 'project_id': '58a07ddfa4944c03b4608206a91a9a39'}}
2025-02-10 02:26:44,188 - INFO - Created VN ctest-vn-36112225
2025-02-10 02:26:44,239 - DEBUG - VN ctest-vn-36112225 UUID is a1821e2f-8ddb-4e11-8f0b-b6333a681b5c
2025-02-10 02:26:44,539 - DEBUG - Response for create_network : {'network': {'id': '52bab1c4-fa37-43b1-8b3e-d784170311c2', 'name': 'ctest-vn-51661415', 'tenant_id': '58a07ddfa4944c03b4608206a91a9a39', 'project_id': '58a07ddfa4944c03b4608206a91a9a39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32668640', 'ctest-vn-51661415'], 'port_security_enabled': True, 'description': ''}}
2025-02-10 02:26:44,704 - DEBUG - Response for create_subnet : {'subnet': {'id': '8bbde468-61c5-4f2b-b216-a4cec8441383', 'name': '', 'tenant_id': '58a07ddfa4944c03b4608206a91a9a39', 'network_id': '52bab1c4-fa37-43b1-8b3e-d784170311c2', 'ip_version': 4, 'cidr': '61.188.195.0/26', 'allocation_pools': [{'start': '61.188.195.2', 'end': '61.188.195.62'}], 'gateway_ip': '61.188.195.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.188.195.2', 'tags': [], 'project_id': '58a07ddfa4944c03b4608206a91a9a39'}}
2025-02-10 02:26:44,722 - INFO - Created VN ctest-vn-51661415
2025-02-10 02:26:44,780 - DEBUG - VN ctest-vn-51661415 UUID is 52bab1c4-fa37-43b1-8b3e-d784170311c2
2025-02-10 02:26:44,902 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32668640:ctest-vn-36112225, 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-32668640:ctest-vn-51661415, 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-02-10 02:26:45,195 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a1821e2f-8ddb-4e11-8f0b-b6333a681b5c', 'name': 'ctest-vn-36112225', 'tenant_id': '58a07ddfa4944c03b4608206a91a9a39', 'project_id': '58a07ddfa4944c03b4608206a91a9a39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62d26431-a79a-4e75-a6df-af8d01494622'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32668640', 'ctest-vn-36112225'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32668640', 'ctest-policy-allow-all-97021359']], 'subnet_ipam': [{'subnet_cidr': '223.169.86.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-10 02:26:45,439 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '52bab1c4-fa37-43b1-8b3e-d784170311c2', 'name': 'ctest-vn-51661415', 'tenant_id': '58a07ddfa4944c03b4608206a91a9a39', 'project_id': '58a07ddfa4944c03b4608206a91a9a39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8bbde468-61c5-4f2b-b216-a4cec8441383'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32668640', 'ctest-vn-51661415'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32668640', 'ctest-policy-allow-all-97021359']], 'subnet_ipam': [{'subnet_cidr': '61.188.195.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-10 02:26:45,611 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-02-10 02:26:45,950 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-02-10 02:26:45,978 - DEBUG - Requesting: http://10.0.0.41:8082/domain/b7676ca7-c8fe-47f8-aecb-eb2bcb61585d
2025-02-10 02:26:45,992 - DEBUG - Requesting: http://10.0.0.41:8082/project/58a07ddf-a494-4c03-b460-8206a91a9a39
2025-02-10 02:26:46,069 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a1821e2f-8ddb-4e11-8f0b-b6333a681b5c
2025-02-10 02:26:46,081 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a1821e2f-8ddb-4e11-8f0b-b6333a681b5c
2025-02-10 02:26:46,091 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/33dd5e92-957b-4bd3-9ef0-88d41df0fe67
2025-02-10 02:26:46,099 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/33dd5e92-957b-4bd3-9ef0-88d41df0fe67
2025-02-10 02:26:46,106 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/8de8e90b-7e02-41cc-8d5d-04ab4b1b63a6
2025-02-10 02:26:46,112 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-10 02:26:46,112 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a1821e2f-8ddb-4e11-8f0b-b6333a681b5c
2025-02-10 02:26:46,121 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/33dd5e92-957b-4bd3-9ef0-88d41df0fe67
2025-02-10 02:26:46,136 - INFO - Verified VN network id 8 for VN a1821e2f-8ddb-4e11-8f0b-b6333a681b5c
2025-02-10 02:26:46,136 - INFO - Verifications in API Server for VN ctest-vn-36112225 passed
2025-02-10 02:26:46,136 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a1821e2f-8ddb-4e11-8f0b-b6333a681b5c
2025-02-10 02:26:46,146 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/33dd5e92-957b-4bd3-9ef0-88d41df0fe67
2025-02-10 02:26:46,152 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/33dd5e92-957b-4bd3-9ef0-88d41df0fe67
2025-02-10 02:26:46,159 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/8de8e90b-7e02-41cc-8d5d-04ab4b1b63a6
2025-02-10 02:26:46,171 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32668640:ctest-vn-36112225', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32668640', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11637897576671038993', 'uuid-lslong': '10307532503307000668'}, 'enable': 'true', 'created': '2025-02-10T02:26:43', 'last-modified': '2025-02-10T02:26:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.995684'}
2025-02-10 02:26:46,177 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-10 02:26:46,178 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36112225 passed
2025-02-10 02:26:46,178 - DEBUG - ====Verifying policy data for ctest-vn-36112225 in API_Server ======
2025-02-10 02:26:46,178 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-02-10 02:26:46,183 - DEBUG - Requesting: http://10.0.0.41:8082/domain/b7676ca7-c8fe-47f8-aecb-eb2bcb61585d
2025-02-10 02:26:46,195 - DEBUG - Requesting: http://10.0.0.41:8082/project/58a07ddf-a494-4c03-b460-8206a91a9a39
2025-02-10 02:26:46,268 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a1821e2f-8ddb-4e11-8f0b-b6333a681b5c
2025-02-10 02:26:46,279 - DEBUG - ==>Verifying data for policy with id: ff407a45-45d4-447b-8abb-fdd8f49c6365, fqn: ['default-domain', 'ctest-TestBasicPolicy-32668640', 'ctest-policy-allow-all-97021359']
2025-02-10 02:26:46,279 - INFO - VN ctest-vn-36112225 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-10 02:26:46,279 - DEBUG - Verifying the vn in opserver
2025-02-10 02:26:46,279 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32668640:ctest-vn-36112225 virtual network link through opserver 10.0.0.41
2025-02-10 02:26:46,279 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-02-10 02:26:46,610 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-02-10 02:26:46,667 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32668640:ctest-vn-36112225', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32668640:ctest-vn-36112225?flat'}
2025-02-10 02:26:46,667 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32668640:ctest-vn-36112225 is found in opserver
2025-02-10 02:26:46,680 - DEBUG - Do not have enough data to verify VN in agent
2025-02-10 02:26:46,685 - DEBUG - VRF ids for VN ctest-vn-36112225: {}
2025-02-10 02:26:46,685 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-02-10 02:26:46,691 - DEBUG - Requesting: http://10.0.0.41:8082/domain/b7676ca7-c8fe-47f8-aecb-eb2bcb61585d
2025-02-10 02:26:46,704 - DEBUG - Requesting: http://10.0.0.41:8082/project/58a07ddf-a494-4c03-b460-8206a91a9a39
2025-02-10 02:26:46,775 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/52bab1c4-fa37-43b1-8b3e-d784170311c2
2025-02-10 02:26:46,787 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/52bab1c4-fa37-43b1-8b3e-d784170311c2
2025-02-10 02:26:46,797 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/42f2f856-40f3-47e4-8ba0-b2a8d2595753
2025-02-10 02:26:46,804 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/42f2f856-40f3-47e4-8ba0-b2a8d2595753
2025-02-10 02:26:46,810 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/bfcd22b6-be9a-4b65-87fb-0522ab8b6370
2025-02-10 02:26:46,817 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-10 02:26:46,817 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/52bab1c4-fa37-43b1-8b3e-d784170311c2
2025-02-10 02:26:46,826 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/42f2f856-40f3-47e4-8ba0-b2a8d2595753
2025-02-10 02:26:46,855 - INFO - Verified VN network id 9 for VN 52bab1c4-fa37-43b1-8b3e-d784170311c2
2025-02-10 02:26:46,855 - INFO - Verifications in API Server for VN ctest-vn-51661415 passed
2025-02-10 02:26:46,855 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/52bab1c4-fa37-43b1-8b3e-d784170311c2
2025-02-10 02:26:46,865 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/42f2f856-40f3-47e4-8ba0-b2a8d2595753
2025-02-10 02:26:46,873 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/42f2f856-40f3-47e4-8ba0-b2a8d2595753
2025-02-10 02:26:46,880 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/bfcd22b6-be9a-4b65-87fb-0522ab8b6370
2025-02-10 02:26:46,893 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32668640:ctest-vn-51661415', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32668640', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5961272516347904945', 'uuid-lslong': '10033693982149775810'}, 'enable': 'true', 'created': '2025-02-10T02:26:44', 'last-modified': '2025-02-10T02:26:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.480193'}
2025-02-10 02:26:46,900 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-10 02:26:46,900 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51661415 passed
2025-02-10 02:26:46,900 - DEBUG - ====Verifying policy data for ctest-vn-51661415 in API_Server ======
2025-02-10 02:26:46,900 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-02-10 02:26:46,905 - DEBUG - Requesting: http://10.0.0.41:8082/domain/b7676ca7-c8fe-47f8-aecb-eb2bcb61585d
2025-02-10 02:26:46,917 - DEBUG - Requesting: http://10.0.0.41:8082/project/58a07ddf-a494-4c03-b460-8206a91a9a39
2025-02-10 02:26:46,989 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/52bab1c4-fa37-43b1-8b3e-d784170311c2
2025-02-10 02:26:46,999 - DEBUG - ==>Verifying data for policy with id: ff407a45-45d4-447b-8abb-fdd8f49c6365, fqn: ['default-domain', 'ctest-TestBasicPolicy-32668640', 'ctest-policy-allow-all-97021359']
2025-02-10 02:26:46,999 - INFO - VN ctest-vn-51661415 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-10 02:26:46,999 - DEBUG - Verifying the vn in opserver
2025-02-10 02:26:46,999 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32668640:ctest-vn-51661415 virtual network link through opserver 10.0.0.41
2025-02-10 02:26:46,999 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-02-10 02:26:47,010 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32668640:ctest-vn-51661415', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32668640:ctest-vn-51661415?flat'}
2025-02-10 02:26:47,010 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32668640:ctest-vn-51661415 is found in opserver
2025-02-10 02:26:47,021 - DEBUG - Do not have enough data to verify VN in agent
2025-02-10 02:26:47,027 - DEBUG - VRF ids for VN ctest-vn-51661415: {}
2025-02-10 02:26:47,082 - DEBUG - Services list from nova: [