2025-03-31 02:24:51,159 - INFO - Domain Default found not creating
2025-03-31 02:24:51,305 - INFO - Project ctest-TestBasicPolicy-73715491 not found, creating it
2025-03-31 02:24:51,778 - INFO - Created Project:ctest-TestBasicPolicy-73715491, ID : f97c5a85-ede5-4bf5-9678-c18ddd666b87
2025-03-31 02:24:53,252 - INFO - ================================================================================
2025-03-31 02:24:53,252 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-31 02:24:53,252 - 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-03-31 02:24:53,508 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.27': '0'}} with
2025-03-31 02:24:53,509 - INFO - Initial checks done. Running the testcase now
2025-03-31 02:24:53,509 - INFO -
2025-03-31 02:24:54,057 - DEBUG - Response for create_network : {'network': {'id': 'cffb734a-b628-49f2-a748-9b3f2e05b5ea', 'name': 'ctest-vn-60461248', 'tenant_id': 'f97c5a85ede54bf59678c18ddd666b87', 'project_id': 'f97c5a85ede54bf59678c18ddd666b87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73715491', 'ctest-vn-60461248'], 'port_security_enabled': True, 'description': ''}}
2025-03-31 02:24:54,267 - DEBUG - Response for create_subnet : {'subnet': {'id': '3b1ac861-0b97-46a5-b906-3e49f184209a', 'name': '', 'tenant_id': 'f97c5a85ede54bf59678c18ddd666b87', 'network_id': 'cffb734a-b628-49f2-a748-9b3f2e05b5ea', 'ip_version': 4, 'cidr': '218.175.112.128/26', 'allocation_pools': [{'start': '218.175.112.130', 'end': '218.175.112.190'}], 'gateway_ip': '218.175.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.175.112.130', 'tags': [], 'project_id': 'f97c5a85ede54bf59678c18ddd666b87'}}
2025-03-31 02:24:54,287 - INFO - Created VN ctest-vn-60461248
2025-03-31 02:24:54,339 - DEBUG - VN ctest-vn-60461248 UUID is cffb734a-b628-49f2-a748-9b3f2e05b5ea
2025-03-31 02:24:54,681 - DEBUG - Response for create_network : {'network': {'id': 'c9051925-8ce2-4b46-ad39-f49ca9d1989e', 'name': 'ctest-vn-98007057', 'tenant_id': 'f97c5a85ede54bf59678c18ddd666b87', 'project_id': 'f97c5a85ede54bf59678c18ddd666b87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73715491', 'ctest-vn-98007057'], 'port_security_enabled': True, 'description': ''}}
2025-03-31 02:24:54,823 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad93c2ed-5d24-4e61-9d8c-7564bd2d11b8', 'name': '', 'tenant_id': 'f97c5a85ede54bf59678c18ddd666b87', 'network_id': 'c9051925-8ce2-4b46-ad39-f49ca9d1989e', 'ip_version': 4, 'cidr': '27.196.134.128/26', 'allocation_pools': [{'start': '27.196.134.130', 'end': '27.196.134.190'}], 'gateway_ip': '27.196.134.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.196.134.130', 'tags': [], 'project_id': 'f97c5a85ede54bf59678c18ddd666b87'}}
2025-03-31 02:24:54,841 - INFO - Created VN ctest-vn-98007057
2025-03-31 02:24:54,894 - DEBUG - VN ctest-vn-98007057 UUID is c9051925-8ce2-4b46-ad39-f49ca9d1989e
2025-03-31 02:24:55,009 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-60461248, 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-73715491:ctest-vn-98007057, 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-03-31 02:24:55,309 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cffb734a-b628-49f2-a748-9b3f2e05b5ea', 'name': 'ctest-vn-60461248', 'tenant_id': 'f97c5a85ede54bf59678c18ddd666b87', 'project_id': 'f97c5a85ede54bf59678c18ddd666b87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3b1ac861-0b97-46a5-b906-3e49f184209a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73715491', 'ctest-vn-60461248'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73715491', 'ctest-policy-allow-all-40218019']], 'subnet_ipam': [{'subnet_cidr': '218.175.112.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-31 02:24:55,524 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9051925-8ce2-4b46-ad39-f49ca9d1989e', 'name': 'ctest-vn-98007057', 'tenant_id': 'f97c5a85ede54bf59678c18ddd666b87', 'project_id': 'f97c5a85ede54bf59678c18ddd666b87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad93c2ed-5d24-4e61-9d8c-7564bd2d11b8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73715491', 'ctest-vn-98007057'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73715491', 'ctest-policy-allow-all-40218019']], 'subnet_ipam': [{'subnet_cidr': '27.196.134.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-31 02:24:55,695 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-31 02:24:55,992 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-31 02:24:56,021 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4d64d474-c023-4f72-ba90-2217e4aada59
2025-03-31 02:24:56,036 - DEBUG - Requesting: http://10.0.0.27:8082/project/f97c5a85-ede5-4bf5-9678-c18ddd666b87
2025-03-31 02:24:56,117 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/cffb734a-b628-49f2-a748-9b3f2e05b5ea
2025-03-31 02:24:56,131 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/cffb734a-b628-49f2-a748-9b3f2e05b5ea
2025-03-31 02:24:56,142 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3ce1dc38-da99-44d5-b558-28f9c03f989b
2025-03-31 02:24:56,150 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3ce1dc38-da99-44d5-b558-28f9c03f989b
2025-03-31 02:24:56,157 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b730dd0d-47aa-4bd9-b27f-35bffd32edb4
2025-03-31 02:24:56,165 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-31 02:24:56,165 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/cffb734a-b628-49f2-a748-9b3f2e05b5ea
2025-03-31 02:24:56,174 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3ce1dc38-da99-44d5-b558-28f9c03f989b
2025-03-31 02:24:56,190 - INFO - Verified VN network id 8 for VN cffb734a-b628-49f2-a748-9b3f2e05b5ea
2025-03-31 02:24:56,190 - INFO - Verifications in API Server for VN ctest-vn-60461248 passed
2025-03-31 02:24:56,190 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/cffb734a-b628-49f2-a748-9b3f2e05b5ea
2025-03-31 02:24:56,200 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3ce1dc38-da99-44d5-b558-28f9c03f989b
2025-03-31 02:24:56,208 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3ce1dc38-da99-44d5-b558-28f9c03f989b
2025-03-31 02:24:56,215 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b730dd0d-47aa-4bd9-b27f-35bffd32edb4
2025-03-31 02:24:56,228 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-60461248', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73715491', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14986698949726325234', 'uuid-lslong': '12054055098314503658'}, 'enable': 'true', 'created': '2025-03-31T02:24:54', 'last-modified': '2025-03-31T02:24:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.942128'}
2025-03-31 02:24:56,236 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-31 02:24:56,236 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60461248 passed
2025-03-31 02:24:56,236 - DEBUG - ====Verifying policy data for ctest-vn-60461248 in API_Server ======
2025-03-31 02:24:56,236 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-31 02:24:56,242 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4d64d474-c023-4f72-ba90-2217e4aada59
2025-03-31 02:24:56,253 - DEBUG - Requesting: http://10.0.0.27:8082/project/f97c5a85-ede5-4bf5-9678-c18ddd666b87
2025-03-31 02:24:56,333 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/cffb734a-b628-49f2-a748-9b3f2e05b5ea
2025-03-31 02:24:56,344 - DEBUG - ==>Verifying data for policy with id: 3353371b-0ee8-4a9c-b519-c79444c0ce52, fqn: ['default-domain', 'ctest-TestBasicPolicy-73715491', 'ctest-policy-allow-all-40218019']
2025-03-31 02:24:56,344 - INFO - VN ctest-vn-60461248 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-31 02:24:56,344 - DEBUG - Verifying the vn in opserver
2025-03-31 02:24:56,344 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-60461248 virtual network link through opserver 10.0.0.27
2025-03-31 02:24:56,344 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-31 02:24:56,646 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-31 02:24:56,699 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-60461248', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-60461248?flat'}
2025-03-31 02:24:56,699 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-60461248 is found in opserver
2025-03-31 02:24:56,711 - DEBUG - Do not have enough data to verify VN in agent
2025-03-31 02:24:56,716 - DEBUG - VRF ids for VN ctest-vn-60461248: {}
2025-03-31 02:24:56,717 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-31 02:24:56,723 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4d64d474-c023-4f72-ba90-2217e4aada59
2025-03-31 02:24:56,735 - DEBUG - Requesting: http://10.0.0.27:8082/project/f97c5a85-ede5-4bf5-9678-c18ddd666b87
2025-03-31 02:24:56,819 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9051925-8ce2-4b46-ad39-f49ca9d1989e
2025-03-31 02:24:56,834 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9051925-8ce2-4b46-ad39-f49ca9d1989e
2025-03-31 02:24:56,844 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/408cb515-dc4c-4a64-a1e7-2d40081d7633
2025-03-31 02:24:56,851 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/408cb515-dc4c-4a64-a1e7-2d40081d7633
2025-03-31 02:24:56,858 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0d597254-68ea-44ca-8eca-adebbb2da50b
2025-03-31 02:24:56,865 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-31 02:24:56,865 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9051925-8ce2-4b46-ad39-f49ca9d1989e
2025-03-31 02:24:56,875 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/408cb515-dc4c-4a64-a1e7-2d40081d7633
2025-03-31 02:24:56,890 - INFO - Verified VN network id 9 for VN c9051925-8ce2-4b46-ad39-f49ca9d1989e
2025-03-31 02:24:56,890 - INFO - Verifications in API Server for VN ctest-vn-98007057 passed
2025-03-31 02:24:56,890 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9051925-8ce2-4b46-ad39-f49ca9d1989e
2025-03-31 02:24:56,901 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/408cb515-dc4c-4a64-a1e7-2d40081d7633
2025-03-31 02:24:56,908 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/408cb515-dc4c-4a64-a1e7-2d40081d7633
2025-03-31 02:24:56,916 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0d597254-68ea-44ca-8eca-adebbb2da50b
2025-03-31 02:24:56,928 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-98007057', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73715491', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14485011425575193414', 'uuid-lslong': '12482276795935201438'}, 'enable': 'true', 'created': '2025-03-31T02:24:54', 'last-modified': '2025-03-31T02:24:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.443804'}
2025-03-31 02:24:56,934 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-31 02:24:56,934 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98007057 passed
2025-03-31 02:24:56,935 - DEBUG - ====Verifying policy data for ctest-vn-98007057 in API_Server ======
2025-03-31 02:24:56,935 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-31 02:24:56,940 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4d64d474-c023-4f72-ba90-2217e4aada59
2025-03-31 02:24:56,954 - DEBUG - Requesting: http://10.0.0.27:8082/project/f97c5a85-ede5-4bf5-9678-c18ddd666b87
2025-03-31 02:24:57,027 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9051925-8ce2-4b46-ad39-f49ca9d1989e
2025-03-31 02:24:57,039 - DEBUG - ==>Verifying data for policy with id: 3353371b-0ee8-4a9c-b519-c79444c0ce52, fqn: ['default-domain', 'ctest-TestBasicPolicy-73715491', 'ctest-policy-allow-all-40218019']
2025-03-31 02:24:57,039 - INFO - VN ctest-vn-98007057 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-31 02:24:57,039 - DEBUG - Verifying the vn in opserver
2025-03-31 02:24:57,039 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-98007057 virtual network link through opserver 10.0.0.27
2025-03-31 02:24:57,039 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-31 02:24:57,052 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-98007057', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-98007057?flat'}
2025-03-31 02:24:57,052 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-98007057 is found in opserver
2025-03-31 02:24:57,063 - DEBUG - Do not have enough data to verify VN in agent
2025-03-31 02:24:57,068 - DEBUG - VRF ids for VN ctest-vn-98007057: {}
2025-03-31 02:24:57,124 - DEBUG - Services list from nova: [