2025-04-08 12:33:30,429 - INFO - Domain Default found not creating
2025-04-08 12:33:30,605 - INFO - Project ctest-TestBasicPolicy-95599950 not found, creating it
2025-04-08 12:33:31,120 - INFO - Created Project:ctest-TestBasicPolicy-95599950, ID : c2a9387f-6a36-4dbf-8001-0bdc395861a9
2025-04-08 12:33:32,731 - INFO - ================================================================================
2025-04-08 12:33:32,731 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-08 12:33:32,731 - 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-04-08 12:33:32,990 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.13': '0'}} with
2025-04-08 12:33:32,991 - INFO - Initial checks done. Running the testcase now
2025-04-08 12:33:32,991 - INFO -
2025-04-08 12:33:33,598 - DEBUG - Response for create_network : {'network': {'id': '21ec1654-ada0-4fda-afc8-9f3371e267f2', 'name': 'ctest-vn-39304200', 'tenant_id': 'c2a9387f6a364dbf80010bdc395861a9', 'project_id': 'c2a9387f6a364dbf80010bdc395861a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95599950', 'ctest-vn-39304200'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 12:33:33,814 - DEBUG - Response for create_subnet : {'subnet': {'id': '3f495d89-67b0-46ab-b719-5284f6df325b', 'name': '', 'tenant_id': 'c2a9387f6a364dbf80010bdc395861a9', 'network_id': '21ec1654-ada0-4fda-afc8-9f3371e267f2', 'ip_version': 4, 'cidr': '131.190.6.192/26', 'allocation_pools': [{'start': '131.190.6.194', 'end': '131.190.6.254'}], 'gateway_ip': '131.190.6.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.190.6.194', 'tags': [], 'project_id': 'c2a9387f6a364dbf80010bdc395861a9'}}
2025-04-08 12:33:33,835 - INFO - Created VN ctest-vn-39304200
2025-04-08 12:33:33,888 - DEBUG - VN ctest-vn-39304200 UUID is 21ec1654-ada0-4fda-afc8-9f3371e267f2
2025-04-08 12:33:34,242 - DEBUG - Response for create_network : {'network': {'id': '631dd5d4-17f0-4b42-8c03-c60c4eea2062', 'name': 'ctest-vn-84554176', 'tenant_id': 'c2a9387f6a364dbf80010bdc395861a9', 'project_id': 'c2a9387f6a364dbf80010bdc395861a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95599950', 'ctest-vn-84554176'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 12:33:34,480 - DEBUG - Response for create_subnet : {'subnet': {'id': '172231f0-0613-4bed-87e6-5c340817c1c8', 'name': '', 'tenant_id': 'c2a9387f6a364dbf80010bdc395861a9', 'network_id': '631dd5d4-17f0-4b42-8c03-c60c4eea2062', 'ip_version': 4, 'cidr': '111.86.131.0/26', 'allocation_pools': [{'start': '111.86.131.2', 'end': '111.86.131.62'}], 'gateway_ip': '111.86.131.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.86.131.2', 'tags': [], 'project_id': 'c2a9387f6a364dbf80010bdc395861a9'}}
2025-04-08 12:33:34,503 - INFO - Created VN ctest-vn-84554176
2025-04-08 12:33:34,559 - DEBUG - VN ctest-vn-84554176 UUID is 631dd5d4-17f0-4b42-8c03-c60c4eea2062
2025-04-08 12:33:34,697 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95599950:ctest-vn-39304200, 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-95599950:ctest-vn-84554176, 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-04-08 12:33:35,050 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21ec1654-ada0-4fda-afc8-9f3371e267f2', 'name': 'ctest-vn-39304200', 'tenant_id': 'c2a9387f6a364dbf80010bdc395861a9', 'project_id': 'c2a9387f6a364dbf80010bdc395861a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3f495d89-67b0-46ab-b719-5284f6df325b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95599950', 'ctest-vn-39304200'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95599950', 'ctest-policy-allow-all-46954285']], 'subnet_ipam': [{'subnet_cidr': '131.190.6.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 12:33:35,364 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '631dd5d4-17f0-4b42-8c03-c60c4eea2062', 'name': 'ctest-vn-84554176', 'tenant_id': 'c2a9387f6a364dbf80010bdc395861a9', 'project_id': 'c2a9387f6a364dbf80010bdc395861a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['172231f0-0613-4bed-87e6-5c340817c1c8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95599950', 'ctest-vn-84554176'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95599950', 'ctest-policy-allow-all-46954285']], 'subnet_ipam': [{'subnet_cidr': '111.86.131.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 12:33:35,535 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-04-08 12:33:35,839 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-04-08 12:33:35,883 - DEBUG - Requesting: http://10.0.0.12:8082/domain/2b8d01b2-36ed-4e0b-9089-8bef09302285
2025-04-08 12:33:35,900 - DEBUG - Requesting: http://10.0.0.12:8082/project/c2a9387f-6a36-4dbf-8001-0bdc395861a9
2025-04-08 12:33:35,986 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/21ec1654-ada0-4fda-afc8-9f3371e267f2
2025-04-08 12:33:36,002 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/21ec1654-ada0-4fda-afc8-9f3371e267f2
2025-04-08 12:33:36,016 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e32c0cb7-858e-4786-8778-193469d3dfee
2025-04-08 12:33:36,029 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e32c0cb7-858e-4786-8778-193469d3dfee
2025-04-08 12:33:36,040 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/5ad8fc57-ac29-4157-8d42-59909e8c7f97
2025-04-08 12:33:36,051 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-08 12:33:36,051 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/21ec1654-ada0-4fda-afc8-9f3371e267f2
2025-04-08 12:33:36,067 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e32c0cb7-858e-4786-8778-193469d3dfee
2025-04-08 12:33:36,089 - INFO - Verified VN network id 9 for VN 21ec1654-ada0-4fda-afc8-9f3371e267f2
2025-04-08 12:33:36,089 - INFO - Verifications in API Server for VN ctest-vn-39304200 passed
2025-04-08 12:33:36,089 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/21ec1654-ada0-4fda-afc8-9f3371e267f2
2025-04-08 12:33:36,106 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e32c0cb7-858e-4786-8778-193469d3dfee
2025-04-08 12:33:36,118 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e32c0cb7-858e-4786-8778-193469d3dfee
2025-04-08 12:33:36,128 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/5ad8fc57-ac29-4157-8d42-59909e8c7f97
2025-04-08 12:33:36,146 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95599950:ctest-vn-39304200', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95599950', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2444353250701365210', 'uuid-lslong': '12666548995282331634'}, 'enable': 'true', 'created': '2025-04-08T12:33:33', 'last-modified': '2025-04-08T12:33:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.121045'}
2025-04-08 12:33:36,156 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-08 12:33:36,156 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39304200 passed
2025-04-08 12:33:36,156 - DEBUG - ====Verifying policy data for ctest-vn-39304200 in API_Server ======
2025-04-08 12:33:36,156 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-04-08 12:33:36,165 - DEBUG - Requesting: http://10.0.0.12:8082/domain/2b8d01b2-36ed-4e0b-9089-8bef09302285
2025-04-08 12:33:36,184 - DEBUG - Requesting: http://10.0.0.12:8082/project/c2a9387f-6a36-4dbf-8001-0bdc395861a9
2025-04-08 12:33:36,284 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/21ec1654-ada0-4fda-afc8-9f3371e267f2
2025-04-08 12:33:36,302 - DEBUG - ==>Verifying data for policy with id: 3fe0946f-acfc-4028-ac73-d43316458509, fqn: ['default-domain', 'ctest-TestBasicPolicy-95599950', 'ctest-policy-allow-all-46954285']
2025-04-08 12:33:36,302 - INFO - VN ctest-vn-39304200 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 12:33:36,302 - DEBUG - Verifying the vn in opserver
2025-04-08 12:33:36,302 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95599950:ctest-vn-39304200 virtual network link through opserver 10.0.0.12
2025-04-08 12:33:36,302 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-04-08 12:33:36,614 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-04-08 12:33:36,688 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95599950:ctest-vn-39304200', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95599950:ctest-vn-39304200?flat'}
2025-04-08 12:33:36,688 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95599950:ctest-vn-39304200 is found in opserver
2025-04-08 12:33:36,703 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 12:33:36,711 - DEBUG - VRF ids for VN ctest-vn-39304200: {}
2025-04-08 12:33:36,711 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-04-08 12:33:36,719 - DEBUG - Requesting: http://10.0.0.12:8082/domain/2b8d01b2-36ed-4e0b-9089-8bef09302285
2025-04-08 12:33:36,733 - DEBUG - Requesting: http://10.0.0.12:8082/project/c2a9387f-6a36-4dbf-8001-0bdc395861a9
2025-04-08 12:33:36,816 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/631dd5d4-17f0-4b42-8c03-c60c4eea2062
2025-04-08 12:33:36,834 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/631dd5d4-17f0-4b42-8c03-c60c4eea2062
2025-04-08 12:33:36,848 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/1271a78a-f1da-4739-9cfa-24172507b5e3
2025-04-08 12:33:36,860 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/1271a78a-f1da-4739-9cfa-24172507b5e3
2025-04-08 12:33:36,873 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/2a620610-0788-4f75-aead-2b680b74cd1e
2025-04-08 12:33:36,883 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 12:33:36,883 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/631dd5d4-17f0-4b42-8c03-c60c4eea2062
2025-04-08 12:33:36,898 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/1271a78a-f1da-4739-9cfa-24172507b5e3
2025-04-08 12:33:36,921 - INFO - Verified VN network id 10 for VN 631dd5d4-17f0-4b42-8c03-c60c4eea2062
2025-04-08 12:33:36,921 - INFO - Verifications in API Server for VN ctest-vn-84554176 passed
2025-04-08 12:33:36,921 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/631dd5d4-17f0-4b42-8c03-c60c4eea2062
2025-04-08 12:33:36,937 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/1271a78a-f1da-4739-9cfa-24172507b5e3
2025-04-08 12:33:36,947 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/1271a78a-f1da-4739-9cfa-24172507b5e3
2025-04-08 12:33:36,959 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/2a620610-0788-4f75-aead-2b680b74cd1e
2025-04-08 12:33:36,978 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95599950:ctest-vn-84554176', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95599950', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7142099690990881602', 'uuid-lslong': '10089125346405916770'}, 'enable': 'true', 'created': '2025-04-08T12:33:34', 'last-modified': '2025-04-08T12:33:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.688441'}
2025-04-08 12:33:36,986 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 12:33:36,987 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84554176 passed
2025-04-08 12:33:36,987 - DEBUG - ====Verifying policy data for ctest-vn-84554176 in API_Server ======
2025-04-08 12:33:36,987 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-04-08 12:33:36,994 - DEBUG - Requesting: http://10.0.0.12:8082/domain/2b8d01b2-36ed-4e0b-9089-8bef09302285
2025-04-08 12:33:37,007 - DEBUG - Requesting: http://10.0.0.12:8082/project/c2a9387f-6a36-4dbf-8001-0bdc395861a9
2025-04-08 12:33:37,090 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/631dd5d4-17f0-4b42-8c03-c60c4eea2062
2025-04-08 12:33:37,103 - DEBUG - ==>Verifying data for policy with id: 3fe0946f-acfc-4028-ac73-d43316458509, fqn: ['default-domain', 'ctest-TestBasicPolicy-95599950', 'ctest-policy-allow-all-46954285']
2025-04-08 12:33:37,103 - INFO - VN ctest-vn-84554176 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 12:33:37,103 - DEBUG - Verifying the vn in opserver
2025-04-08 12:33:37,103 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95599950:ctest-vn-84554176 virtual network link through opserver 10.0.0.12
2025-04-08 12:33:37,103 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-04-08 12:33:37,116 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95599950:ctest-vn-84554176', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95599950:ctest-vn-84554176?flat'}
2025-04-08 12:33:37,116 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95599950:ctest-vn-84554176 is found in opserver
2025-04-08 12:33:37,130 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 12:33:37,136 - DEBUG - VRF ids for VN ctest-vn-84554176: {}
2025-04-08 12:33:37,204 - DEBUG - Services list from nova: [