2025-04-22 18:25:25,138 - INFO - Domain Default found not creating
2025-04-22 18:25:25,582 - INFO - Project ctest-TestBasicPolicy-19148551 not found, creating it
2025-04-22 18:25:26,016 - INFO - Created Project:ctest-TestBasicPolicy-19148551, ID : a634c0dc-a785-4899-b095-bfc4469e4a88
2025-04-22 18:25:27,400 - INFO - ================================================================================
2025-04-22 18:25:27,400 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-22 18:25:27,400 - 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-22 18:25:27,657 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-04-22 18:25:27,657 - INFO - Initial checks done. Running the testcase now
2025-04-22 18:25:27,657 - INFO -
2025-04-22 18:25:28,196 - DEBUG - Response for create_network : {'network': {'id': '7781ee46-3b73-4a8e-b006-a336b4767c74', 'name': 'ctest-vn-40513892', 'tenant_id': 'a634c0dca7854899b095bfc4469e4a88', 'project_id': 'a634c0dca7854899b095bfc4469e4a88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19148551', 'ctest-vn-40513892'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 18:25:28,434 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c3acbcc-7685-4360-9393-96c22b180fcb', 'name': '', 'tenant_id': 'a634c0dca7854899b095bfc4469e4a88', 'network_id': '7781ee46-3b73-4a8e-b006-a336b4767c74', 'ip_version': 4, 'cidr': '65.9.55.64/26', 'allocation_pools': [{'start': '65.9.55.66', 'end': '65.9.55.126'}], 'gateway_ip': '65.9.55.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.9.55.66', 'tags': [], 'project_id': 'a634c0dca7854899b095bfc4469e4a88'}}
2025-04-22 18:25:28,452 - INFO - Created VN ctest-vn-40513892
2025-04-22 18:25:28,508 - DEBUG - VN ctest-vn-40513892 UUID is 7781ee46-3b73-4a8e-b006-a336b4767c74
2025-04-22 18:25:28,947 - DEBUG - Response for create_network : {'network': {'id': 'f9df9fc1-a951-4c16-9737-10aa6d331390', 'name': 'ctest-vn-84223116', 'tenant_id': 'a634c0dca7854899b095bfc4469e4a88', 'project_id': 'a634c0dca7854899b095bfc4469e4a88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19148551', 'ctest-vn-84223116'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 18:25:29,123 - DEBUG - Response for create_subnet : {'subnet': {'id': '49780b61-3bd9-45e8-bf55-0ba70d9f823e', 'name': '', 'tenant_id': 'a634c0dca7854899b095bfc4469e4a88', 'network_id': 'f9df9fc1-a951-4c16-9737-10aa6d331390', 'ip_version': 4, 'cidr': '16.129.210.64/26', 'allocation_pools': [{'start': '16.129.210.66', 'end': '16.129.210.126'}], 'gateway_ip': '16.129.210.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.129.210.66', 'tags': [], 'project_id': 'a634c0dca7854899b095bfc4469e4a88'}}
2025-04-22 18:25:29,144 - INFO - Created VN ctest-vn-84223116
2025-04-22 18:25:29,196 - DEBUG - VN ctest-vn-84223116 UUID is f9df9fc1-a951-4c16-9737-10aa6d331390
2025-04-22 18:25:29,348 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19148551:ctest-vn-40513892, 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-19148551:ctest-vn-84223116, 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-22 18:25:29,649 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7781ee46-3b73-4a8e-b006-a336b4767c74', 'name': 'ctest-vn-40513892', 'tenant_id': 'a634c0dca7854899b095bfc4469e4a88', 'project_id': 'a634c0dca7854899b095bfc4469e4a88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c3acbcc-7685-4360-9393-96c22b180fcb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19148551', 'ctest-vn-40513892'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19148551', 'ctest-policy-allow-all-83758025']], 'subnet_ipam': [{'subnet_cidr': '65.9.55.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 18:25:29,879 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f9df9fc1-a951-4c16-9737-10aa6d331390', 'name': 'ctest-vn-84223116', 'tenant_id': 'a634c0dca7854899b095bfc4469e4a88', 'project_id': 'a634c0dca7854899b095bfc4469e4a88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49780b61-3bd9-45e8-bf55-0ba70d9f823e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19148551', 'ctest-vn-84223116'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19148551', 'ctest-policy-allow-all-83758025']], 'subnet_ipam': [{'subnet_cidr': '16.129.210.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 18:25:30,040 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-22 18:25:30,337 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-22 18:25:30,366 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5ee5d5eb-e818-45d3-82f6-91eb7312f574
2025-04-22 18:25:30,379 - DEBUG - Requesting: http://10.0.0.50:8082/project/a634c0dc-a785-4899-b095-bfc4469e4a88
2025-04-22 18:25:30,455 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7781ee46-3b73-4a8e-b006-a336b4767c74
2025-04-22 18:25:30,466 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7781ee46-3b73-4a8e-b006-a336b4767c74
2025-04-22 18:25:30,477 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d94f7382-fff2-40fb-8af7-0d4e8e66dda3
2025-04-22 18:25:30,484 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d94f7382-fff2-40fb-8af7-0d4e8e66dda3
2025-04-22 18:25:30,490 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b79f0075-792c-4359-bbf1-f1c7e4aa777f
2025-04-22 18:25:30,496 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 18:25:30,496 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7781ee46-3b73-4a8e-b006-a336b4767c74
2025-04-22 18:25:30,505 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d94f7382-fff2-40fb-8af7-0d4e8e66dda3
2025-04-22 18:25:30,518 - INFO - Verified VN network id 8 for VN 7781ee46-3b73-4a8e-b006-a336b4767c74
2025-04-22 18:25:30,518 - INFO - Verifications in API Server for VN ctest-vn-40513892 passed
2025-04-22 18:25:30,518 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7781ee46-3b73-4a8e-b006-a336b4767c74
2025-04-22 18:25:30,527 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d94f7382-fff2-40fb-8af7-0d4e8e66dda3
2025-04-22 18:25:30,534 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d94f7382-fff2-40fb-8af7-0d4e8e66dda3
2025-04-22 18:25:30,541 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b79f0075-792c-4359-bbf1-f1c7e4aa777f
2025-04-22 18:25:30,552 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19148551:ctest-vn-40513892', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19148551', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8611425947921631886', 'uuid-lslong': '12684004855886806132'}, 'enable': 'true', 'created': '2025-04-22T18:25:28', 'last-modified': '2025-04-22T18:25:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924212'}
2025-04-22 18:25:30,558 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 18:25:30,558 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40513892 passed
2025-04-22 18:25:30,558 - DEBUG - ====Verifying policy data for ctest-vn-40513892 in API_Server ======
2025-04-22 18:25:30,558 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-22 18:25:30,563 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5ee5d5eb-e818-45d3-82f6-91eb7312f574
2025-04-22 18:25:30,574 - DEBUG - Requesting: http://10.0.0.50:8082/project/a634c0dc-a785-4899-b095-bfc4469e4a88
2025-04-22 18:25:30,641 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7781ee46-3b73-4a8e-b006-a336b4767c74
2025-04-22 18:25:30,650 - DEBUG - ==>Verifying data for policy with id: 555bcf85-3eed-4b43-a94c-b28881bd57f6, fqn: ['default-domain', 'ctest-TestBasicPolicy-19148551', 'ctest-policy-allow-all-83758025']
2025-04-22 18:25:30,651 - INFO - VN ctest-vn-40513892 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 18:25:30,651 - DEBUG - Verifying the vn in opserver
2025-04-22 18:25:30,651 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19148551:ctest-vn-40513892 virtual network link through opserver 10.0.0.50
2025-04-22 18:25:30,651 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-22 18:25:30,939 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-22 18:25:30,986 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19148551:ctest-vn-40513892', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19148551:ctest-vn-40513892?flat'}
2025-04-22 18:25:30,986 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19148551:ctest-vn-40513892 is found in opserver
2025-04-22 18:25:30,996 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 18:25:31,001 - DEBUG - VRF ids for VN ctest-vn-40513892: {}
2025-04-22 18:25:31,001 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-22 18:25:31,006 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5ee5d5eb-e818-45d3-82f6-91eb7312f574
2025-04-22 18:25:31,017 - DEBUG - Requesting: http://10.0.0.50:8082/project/a634c0dc-a785-4899-b095-bfc4469e4a88
2025-04-22 18:25:31,085 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f9df9fc1-a951-4c16-9737-10aa6d331390
2025-04-22 18:25:31,097 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f9df9fc1-a951-4c16-9737-10aa6d331390
2025-04-22 18:25:31,106 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7deb48ec-567a-4d19-bf79-b2c406ce544c
2025-04-22 18:25:31,113 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7deb48ec-567a-4d19-bf79-b2c406ce544c
2025-04-22 18:25:31,119 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b32ea818-f680-40b3-bf6e-4a01d55e321a
2025-04-22 18:25:31,125 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 18:25:31,125 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f9df9fc1-a951-4c16-9737-10aa6d331390
2025-04-22 18:25:31,133 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7deb48ec-567a-4d19-bf79-b2c406ce544c
2025-04-22 18:25:31,145 - INFO - Verified VN network id 9 for VN f9df9fc1-a951-4c16-9737-10aa6d331390
2025-04-22 18:25:31,145 - INFO - Verifications in API Server for VN ctest-vn-84223116 passed
2025-04-22 18:25:31,145 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f9df9fc1-a951-4c16-9737-10aa6d331390
2025-04-22 18:25:31,153 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7deb48ec-567a-4d19-bf79-b2c406ce544c
2025-04-22 18:25:31,160 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7deb48ec-567a-4d19-bf79-b2c406ce544c
2025-04-22 18:25:31,166 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b32ea818-f680-40b3-bf6e-4a01d55e321a
2025-04-22 18:25:31,177 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19148551:ctest-vn-84223116', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19148551', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18005285489368714262', 'uuid-lslong': '10896196147608753040'}, 'enable': 'true', 'created': '2025-04-22T18:25:28', 'last-modified': '2025-04-22T18:25:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.320522'}
2025-04-22 18:25:31,183 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 18:25:31,183 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84223116 passed
2025-04-22 18:25:31,183 - DEBUG - ====Verifying policy data for ctest-vn-84223116 in API_Server ======
2025-04-22 18:25:31,183 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-22 18:25:31,189 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5ee5d5eb-e818-45d3-82f6-91eb7312f574
2025-04-22 18:25:31,200 - DEBUG - Requesting: http://10.0.0.50:8082/project/a634c0dc-a785-4899-b095-bfc4469e4a88
2025-04-22 18:25:31,271 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f9df9fc1-a951-4c16-9737-10aa6d331390
2025-04-22 18:25:31,280 - DEBUG - ==>Verifying data for policy with id: 555bcf85-3eed-4b43-a94c-b28881bd57f6, fqn: ['default-domain', 'ctest-TestBasicPolicy-19148551', 'ctest-policy-allow-all-83758025']
2025-04-22 18:25:31,280 - INFO - VN ctest-vn-84223116 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 18:25:31,280 - DEBUG - Verifying the vn in opserver
2025-04-22 18:25:31,280 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19148551:ctest-vn-84223116 virtual network link through opserver 10.0.0.50
2025-04-22 18:25:31,280 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-22 18:25:31,290 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19148551:ctest-vn-84223116', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19148551:ctest-vn-84223116?flat'}
2025-04-22 18:25:31,290 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19148551:ctest-vn-84223116 is found in opserver
2025-04-22 18:25:31,300 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 18:25:31,305 - DEBUG - VRF ids for VN ctest-vn-84223116: {}
2025-04-22 18:25:31,357 - DEBUG - Services list from nova: [