2025-03-24 21:11:11,984 - INFO - Domain Default found not creating
2025-03-24 21:11:12,160 - INFO - Project ctest-TestBasicPolicy-90195201 not found, creating it
2025-03-24 21:11:12,680 - INFO - Created Project:ctest-TestBasicPolicy-90195201, ID : 9501c881-0b56-4a95-938e-fed183351f19
2025-03-24 21:11:14,227 - INFO - ================================================================================
2025-03-24 21:11:14,227 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-24 21:11:14,227 - 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-24 21:11:14,491 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.19': '0'}} with
2025-03-24 21:11:14,492 - INFO - Initial checks done. Running the testcase now
2025-03-24 21:11:14,492 - INFO -
2025-03-24 21:11:15,084 - DEBUG - Response for create_network : {'network': {'id': '1d7a6d03-5721-4b0c-a120-e812319705ec', 'name': 'ctest-vn-24626042', 'tenant_id': '9501c8810b564a95938efed183351f19', 'project_id': '9501c8810b564a95938efed183351f19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90195201', 'ctest-vn-24626042'], 'port_security_enabled': True, 'description': ''}}
2025-03-24 21:11:15,275 - DEBUG - Response for create_subnet : {'subnet': {'id': '265d835a-1b30-494f-9813-8ad4ee76a507', 'name': '', 'tenant_id': '9501c8810b564a95938efed183351f19', 'network_id': '1d7a6d03-5721-4b0c-a120-e812319705ec', 'ip_version': 4, 'cidr': '76.124.34.128/26', 'allocation_pools': [{'start': '76.124.34.130', 'end': '76.124.34.190'}], 'gateway_ip': '76.124.34.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.124.34.130', 'tags': [], 'project_id': '9501c8810b564a95938efed183351f19'}}
2025-03-24 21:11:15,299 - INFO - Created VN ctest-vn-24626042
2025-03-24 21:11:15,357 - DEBUG - VN ctest-vn-24626042 UUID is 1d7a6d03-5721-4b0c-a120-e812319705ec
2025-03-24 21:11:15,697 - DEBUG - Response for create_network : {'network': {'id': '2d85f796-b02c-477b-985c-29d8d8bf3bee', 'name': 'ctest-vn-21086482', 'tenant_id': '9501c8810b564a95938efed183351f19', 'project_id': '9501c8810b564a95938efed183351f19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90195201', 'ctest-vn-21086482'], 'port_security_enabled': True, 'description': ''}}
2025-03-24 21:11:15,887 - DEBUG - Response for create_subnet : {'subnet': {'id': '5973a92e-2bd3-4f9a-9473-9d240c5361b5', 'name': '', 'tenant_id': '9501c8810b564a95938efed183351f19', 'network_id': '2d85f796-b02c-477b-985c-29d8d8bf3bee', 'ip_version': 4, 'cidr': '144.182.99.0/26', 'allocation_pools': [{'start': '144.182.99.2', 'end': '144.182.99.62'}], 'gateway_ip': '144.182.99.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.182.99.2', 'tags': [], 'project_id': '9501c8810b564a95938efed183351f19'}}
2025-03-24 21:11:15,909 - INFO - Created VN ctest-vn-21086482
2025-03-24 21:11:15,961 - DEBUG - VN ctest-vn-21086482 UUID is 2d85f796-b02c-477b-985c-29d8d8bf3bee
2025-03-24 21:11:16,081 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90195201:ctest-vn-24626042, 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-90195201:ctest-vn-21086482, 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-24 21:11:16,396 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1d7a6d03-5721-4b0c-a120-e812319705ec', 'name': 'ctest-vn-24626042', 'tenant_id': '9501c8810b564a95938efed183351f19', 'project_id': '9501c8810b564a95938efed183351f19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['265d835a-1b30-494f-9813-8ad4ee76a507'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90195201', 'ctest-vn-24626042'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90195201', 'ctest-policy-allow-all-20194677']], 'subnet_ipam': [{'subnet_cidr': '76.124.34.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-24 21:11:16,671 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d85f796-b02c-477b-985c-29d8d8bf3bee', 'name': 'ctest-vn-21086482', 'tenant_id': '9501c8810b564a95938efed183351f19', 'project_id': '9501c8810b564a95938efed183351f19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5973a92e-2bd3-4f9a-9473-9d240c5361b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90195201', 'ctest-vn-21086482'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90195201', 'ctest-policy-allow-all-20194677']], 'subnet_ipam': [{'subnet_cidr': '144.182.99.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-24 21:11:16,842 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-24 21:11:17,148 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-24 21:11:17,182 - DEBUG - Requesting: http://10.0.0.17:8082/domain/c032f704-8960-40dc-b550-8cfb6ee34d1c
2025-03-24 21:11:17,201 - DEBUG - Requesting: http://10.0.0.17:8082/project/9501c881-0b56-4a95-938e-fed183351f19
2025-03-24 21:11:17,285 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/1d7a6d03-5721-4b0c-a120-e812319705ec
2025-03-24 21:11:17,298 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/1d7a6d03-5721-4b0c-a120-e812319705ec
2025-03-24 21:11:17,308 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/611c198a-8b30-40d0-b9df-0f38b3362217
2025-03-24 21:11:17,316 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/611c198a-8b30-40d0-b9df-0f38b3362217
2025-03-24 21:11:17,325 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/b6efe63a-d263-46b8-9d31-57d5fb781ce0
2025-03-24 21:11:17,333 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-24 21:11:17,333 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/1d7a6d03-5721-4b0c-a120-e812319705ec
2025-03-24 21:11:17,346 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/611c198a-8b30-40d0-b9df-0f38b3362217
2025-03-24 21:11:17,364 - INFO - Verified VN network id 8 for VN 1d7a6d03-5721-4b0c-a120-e812319705ec
2025-03-24 21:11:17,364 - INFO - Verifications in API Server for VN ctest-vn-24626042 passed
2025-03-24 21:11:17,364 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/1d7a6d03-5721-4b0c-a120-e812319705ec
2025-03-24 21:11:17,375 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/611c198a-8b30-40d0-b9df-0f38b3362217
2025-03-24 21:11:17,383 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/611c198a-8b30-40d0-b9df-0f38b3362217
2025-03-24 21:11:17,392 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/b6efe63a-d263-46b8-9d31-57d5fb781ce0
2025-03-24 21:11:17,405 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90195201:ctest-vn-24626042', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90195201', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2124130035372739340', 'uuid-lslong': '11610535004200175084'}, 'enable': 'true', 'created': '2025-03-24T21:11:15', 'last-modified': '2025-03-24T21:11:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.034461'}
2025-03-24 21:11:17,412 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-24 21:11:17,412 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24626042 passed
2025-03-24 21:11:17,413 - DEBUG - ====Verifying policy data for ctest-vn-24626042 in API_Server ======
2025-03-24 21:11:17,413 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-24 21:11:17,420 - DEBUG - Requesting: http://10.0.0.17:8082/domain/c032f704-8960-40dc-b550-8cfb6ee34d1c
2025-03-24 21:11:17,435 - DEBUG - Requesting: http://10.0.0.17:8082/project/9501c881-0b56-4a95-938e-fed183351f19
2025-03-24 21:11:17,519 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/1d7a6d03-5721-4b0c-a120-e812319705ec
2025-03-24 21:11:17,533 - DEBUG - ==>Verifying data for policy with id: 4349e1cc-70ca-424e-a2bd-6d286fcb47e1, fqn: ['default-domain', 'ctest-TestBasicPolicy-90195201', 'ctest-policy-allow-all-20194677']
2025-03-24 21:11:17,533 - INFO - VN ctest-vn-24626042 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-24 21:11:17,533 - DEBUG - Verifying the vn in opserver
2025-03-24 21:11:17,534 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90195201:ctest-vn-24626042 virtual network link through opserver 10.0.0.17
2025-03-24 21:11:17,534 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-24 21:11:17,828 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-24 21:11:17,901 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90195201:ctest-vn-24626042', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90195201:ctest-vn-24626042?flat'}
2025-03-24 21:11:17,901 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90195201:ctest-vn-24626042 is found in opserver
2025-03-24 21:11:17,915 - DEBUG - Do not have enough data to verify VN in agent
2025-03-24 21:11:17,922 - DEBUG - VRF ids for VN ctest-vn-24626042: {}
2025-03-24 21:11:17,922 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-24 21:11:17,930 - DEBUG - Requesting: http://10.0.0.17:8082/domain/c032f704-8960-40dc-b550-8cfb6ee34d1c
2025-03-24 21:11:17,947 - DEBUG - Requesting: http://10.0.0.17:8082/project/9501c881-0b56-4a95-938e-fed183351f19
2025-03-24 21:11:18,048 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2d85f796-b02c-477b-985c-29d8d8bf3bee
2025-03-24 21:11:18,064 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2d85f796-b02c-477b-985c-29d8d8bf3bee
2025-03-24 21:11:18,075 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/caff5c01-3f14-4301-9339-6466cc86a0e9
2025-03-24 21:11:18,084 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/caff5c01-3f14-4301-9339-6466cc86a0e9
2025-03-24 21:11:18,094 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/225125fe-6ff1-4ac9-9bff-75cf9ee879e6
2025-03-24 21:11:18,101 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-24 21:11:18,101 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2d85f796-b02c-477b-985c-29d8d8bf3bee
2025-03-24 21:11:18,113 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/caff5c01-3f14-4301-9339-6466cc86a0e9
2025-03-24 21:11:18,132 - INFO - Verified VN network id 9 for VN 2d85f796-b02c-477b-985c-29d8d8bf3bee
2025-03-24 21:11:18,132 - INFO - Verifications in API Server for VN ctest-vn-21086482 passed
2025-03-24 21:11:18,132 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2d85f796-b02c-477b-985c-29d8d8bf3bee
2025-03-24 21:11:18,144 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/caff5c01-3f14-4301-9339-6466cc86a0e9
2025-03-24 21:11:18,153 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/caff5c01-3f14-4301-9339-6466cc86a0e9
2025-03-24 21:11:18,163 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/225125fe-6ff1-4ac9-9bff-75cf9ee879e6
2025-03-24 21:11:18,178 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90195201:ctest-vn-21086482', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90195201', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3280300130182121339', 'uuid-lslong': '10978696002948512750'}, 'enable': 'true', 'created': '2025-03-24T21:11:15', 'last-modified': '2025-03-24T21:11:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.536802'}
2025-03-24 21:11:18,185 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-24 21:11:18,185 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21086482 passed
2025-03-24 21:11:18,185 - DEBUG - ====Verifying policy data for ctest-vn-21086482 in API_Server ======
2025-03-24 21:11:18,185 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-24 21:11:18,191 - DEBUG - Requesting: http://10.0.0.17:8082/domain/c032f704-8960-40dc-b550-8cfb6ee34d1c
2025-03-24 21:11:18,205 - DEBUG - Requesting: http://10.0.0.17:8082/project/9501c881-0b56-4a95-938e-fed183351f19
2025-03-24 21:11:18,284 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2d85f796-b02c-477b-985c-29d8d8bf3bee
2025-03-24 21:11:18,296 - DEBUG - ==>Verifying data for policy with id: 4349e1cc-70ca-424e-a2bd-6d286fcb47e1, fqn: ['default-domain', 'ctest-TestBasicPolicy-90195201', 'ctest-policy-allow-all-20194677']
2025-03-24 21:11:18,296 - INFO - VN ctest-vn-21086482 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-24 21:11:18,296 - DEBUG - Verifying the vn in opserver
2025-03-24 21:11:18,297 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90195201:ctest-vn-21086482 virtual network link through opserver 10.0.0.17
2025-03-24 21:11:18,297 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-24 21:11:18,311 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90195201:ctest-vn-21086482', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90195201:ctest-vn-21086482?flat'}
2025-03-24 21:11:18,311 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90195201:ctest-vn-21086482 is found in opserver
2025-03-24 21:11:18,324 - DEBUG - Do not have enough data to verify VN in agent
2025-03-24 21:11:18,331 - DEBUG - VRF ids for VN ctest-vn-21086482: {}
2025-03-24 21:11:18,390 - DEBUG - Services list from nova: [