2025-01-09 16:37:42,684 - INFO - Domain Default found not creating
2025-01-09 16:37:42,834 - INFO - Project ctest-TestBasicPolicy-15619441 not found, creating it
2025-01-09 16:37:43,296 - INFO - Created Project:ctest-TestBasicPolicy-15619441, ID : 0b37f9ab-22ab-4558-bfab-e35fcf080caa
2025-01-09 16:37:44,743 - INFO - ================================================================================
2025-01-09 16:37:44,744 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-09 16:37:44,744 - 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-01-09 16:37:45,000 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.17': '0'}} with
2025-01-09 16:37:45,000 - INFO - Initial checks done. Running the testcase now
2025-01-09 16:37:45,001 - INFO -
2025-01-09 16:37:45,526 - DEBUG - Response for create_network : {'network': {'id': 'b3cd2c45-66de-45e4-b4a2-2e3ac783fb16', 'name': 'ctest-vn-24307299', 'tenant_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'project_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15619441', 'ctest-vn-24307299'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 16:37:45,704 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f58cd4e0-1284-43c6-8b43-d34c571c5479', 'name': '', 'tenant_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'network_id': 'b3cd2c45-66de-45e4-b4a2-2e3ac783fb16', 'ip_version': 4, 'cidr': '86.124.8.128/26', 'allocation_pools': [{'start': '86.124.8.130', 'end': '86.124.8.190'}], 'gateway_ip': '86.124.8.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.124.8.130', 'tags': [], 'project_id': '0b37f9ab22ab4558bfabe35fcf080caa'}}
2025-01-09 16:37:45,723 - INFO - Created VN ctest-vn-24307299
2025-01-09 16:37:45,779 - DEBUG - VN ctest-vn-24307299 UUID is b3cd2c45-66de-45e4-b4a2-2e3ac783fb16
2025-01-09 16:37:46,057 - DEBUG - Response for create_network : {'network': {'id': '950cc273-499e-4c13-87ff-437e692e8436', 'name': 'ctest-vn-72908044', 'tenant_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'project_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15619441', 'ctest-vn-72908044'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 16:37:46,238 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e88e0e84-1df2-4950-868f-e95518b378b2', 'name': '', 'tenant_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'network_id': '950cc273-499e-4c13-87ff-437e692e8436', 'ip_version': 4, 'cidr': '46.13.9.192/26', 'allocation_pools': [{'start': '46.13.9.194', 'end': '46.13.9.254'}], 'gateway_ip': '46.13.9.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.13.9.194', 'tags': [], 'project_id': '0b37f9ab22ab4558bfabe35fcf080caa'}}
2025-01-09 16:37:46,256 - INFO - Created VN ctest-vn-72908044
2025-01-09 16:37:46,311 - DEBUG - VN ctest-vn-72908044 UUID is 950cc273-499e-4c13-87ff-437e692e8436
2025-01-09 16:37:46,423 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-24307299, 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-15619441:ctest-vn-72908044, 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-01-09 16:37:46,725 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b3cd2c45-66de-45e4-b4a2-2e3ac783fb16', 'name': 'ctest-vn-24307299', 'tenant_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'project_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f58cd4e0-1284-43c6-8b43-d34c571c5479'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15619441', 'ctest-vn-24307299'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15619441', 'ctest-policy-allow-all-47248310']], 'subnet_ipam': [{'subnet_cidr': '86.124.8.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 16:37:46,958 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '950cc273-499e-4c13-87ff-437e692e8436', 'name': 'ctest-vn-72908044', 'tenant_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'project_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e88e0e84-1df2-4950-868f-e95518b378b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15619441', 'ctest-vn-72908044'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15619441', 'ctest-policy-allow-all-47248310']], 'subnet_ipam': [{'subnet_cidr': '46.13.9.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 16:37:47,135 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-09 16:37:47,654 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-09 16:37:47,692 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1291483c-5412-4ec8-85c7-d15c937be773
2025-01-09 16:37:47,707 - DEBUG - Requesting: http://10.0.0.24:8082/project/0b37f9ab-22ab-4558-bfab-e35fcf080caa
2025-01-09 16:37:47,781 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3cd2c45-66de-45e4-b4a2-2e3ac783fb16
2025-01-09 16:37:47,792 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3cd2c45-66de-45e4-b4a2-2e3ac783fb16
2025-01-09 16:37:47,804 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffe83e5f-eca6-4890-9e28-bdc313c49843
2025-01-09 16:37:47,812 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffe83e5f-eca6-4890-9e28-bdc313c49843
2025-01-09 16:37:47,819 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/f8c884cd-6a69-42da-a416-8c0439456828
2025-01-09 16:37:47,827 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 16:37:47,827 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3cd2c45-66de-45e4-b4a2-2e3ac783fb16
2025-01-09 16:37:47,837 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffe83e5f-eca6-4890-9e28-bdc313c49843
2025-01-09 16:37:47,852 - INFO - Verified VN network id 8 for VN b3cd2c45-66de-45e4-b4a2-2e3ac783fb16
2025-01-09 16:37:47,852 - INFO - Verifications in API Server for VN ctest-vn-24307299 passed
2025-01-09 16:37:47,852 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3cd2c45-66de-45e4-b4a2-2e3ac783fb16
2025-01-09 16:37:47,863 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffe83e5f-eca6-4890-9e28-bdc313c49843
2025-01-09 16:37:47,871 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffe83e5f-eca6-4890-9e28-bdc313c49843
2025-01-09 16:37:47,879 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/f8c884cd-6a69-42da-a416-8c0439456828
2025-01-09 16:37:47,894 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-24307299', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15619441', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12956060379604993508', 'uuid-lslong': '13016016703044451094'}, 'enable': 'true', 'created': '2025-01-09T16:37:45', 'last-modified': '2025-01-09T16:37:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.191810'}
2025-01-09 16:37:47,901 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 16:37:47,901 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24307299 passed
2025-01-09 16:37:47,901 - DEBUG - ====Verifying policy data for ctest-vn-24307299 in API_Server ======
2025-01-09 16:37:47,901 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-09 16:37:47,909 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1291483c-5412-4ec8-85c7-d15c937be773
2025-01-09 16:37:47,923 - DEBUG - Requesting: http://10.0.0.24:8082/project/0b37f9ab-22ab-4558-bfab-e35fcf080caa
2025-01-09 16:37:47,996 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3cd2c45-66de-45e4-b4a2-2e3ac783fb16
2025-01-09 16:37:48,007 - DEBUG - ==>Verifying data for policy with id: a02fc857-3b93-412c-9188-0349d12a55f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-15619441', 'ctest-policy-allow-all-47248310']
2025-01-09 16:37:48,007 - INFO - VN ctest-vn-24307299 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 16:37:48,007 - DEBUG - Verifying the vn in opserver
2025-01-09 16:37:48,007 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-24307299 virtual network link through opserver 10.0.0.24
2025-01-09 16:37:48,007 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-01-09 16:37:48,298 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-01-09 16:37:48,366 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-24307299', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-24307299?flat'}
2025-01-09 16:37:48,366 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-24307299 is found in opserver
2025-01-09 16:37:48,376 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 16:37:48,382 - DEBUG - VRF ids for VN ctest-vn-24307299: {}
2025-01-09 16:37:48,382 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-09 16:37:48,389 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1291483c-5412-4ec8-85c7-d15c937be773
2025-01-09 16:37:48,401 - DEBUG - Requesting: http://10.0.0.24:8082/project/0b37f9ab-22ab-4558-bfab-e35fcf080caa
2025-01-09 16:37:48,475 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/950cc273-499e-4c13-87ff-437e692e8436
2025-01-09 16:37:48,488 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/950cc273-499e-4c13-87ff-437e692e8436
2025-01-09 16:37:48,499 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/6e3eecad-a9eb-4908-a931-97ca1e8e24ad
2025-01-09 16:37:48,507 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/6e3eecad-a9eb-4908-a931-97ca1e8e24ad
2025-01-09 16:37:48,515 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/0e294379-4eb2-4004-aef0-3c200537f1db
2025-01-09 16:37:48,522 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 16:37:48,522 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/950cc273-499e-4c13-87ff-437e692e8436
2025-01-09 16:37:48,533 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/6e3eecad-a9eb-4908-a931-97ca1e8e24ad
2025-01-09 16:37:48,548 - INFO - Verified VN network id 9 for VN 950cc273-499e-4c13-87ff-437e692e8436
2025-01-09 16:37:48,549 - INFO - Verifications in API Server for VN ctest-vn-72908044 passed
2025-01-09 16:37:48,549 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/950cc273-499e-4c13-87ff-437e692e8436
2025-01-09 16:37:48,560 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/6e3eecad-a9eb-4908-a931-97ca1e8e24ad
2025-01-09 16:37:48,569 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/6e3eecad-a9eb-4908-a931-97ca1e8e24ad
2025-01-09 16:37:48,576 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/0e294379-4eb2-4004-aef0-3c200537f1db
2025-01-09 16:37:48,589 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-72908044', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15619441', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10740173011783928851', 'uuid-lslong': '9799625524391085110'}, 'enable': 'true', 'created': '2025-01-09T16:37:46', 'last-modified': '2025-01-09T16:37:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.656254'}
2025-01-09 16:37:48,596 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 16:37:48,596 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72908044 passed
2025-01-09 16:37:48,596 - DEBUG - ====Verifying policy data for ctest-vn-72908044 in API_Server ======
2025-01-09 16:37:48,596 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-09 16:37:48,602 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1291483c-5412-4ec8-85c7-d15c937be773
2025-01-09 16:37:48,617 - DEBUG - Requesting: http://10.0.0.24:8082/project/0b37f9ab-22ab-4558-bfab-e35fcf080caa
2025-01-09 16:37:48,688 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/950cc273-499e-4c13-87ff-437e692e8436
2025-01-09 16:37:48,698 - DEBUG - ==>Verifying data for policy with id: a02fc857-3b93-412c-9188-0349d12a55f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-15619441', 'ctest-policy-allow-all-47248310']
2025-01-09 16:37:48,698 - INFO - VN ctest-vn-72908044 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 16:37:48,698 - DEBUG - Verifying the vn in opserver
2025-01-09 16:37:48,698 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-72908044 virtual network link through opserver 10.0.0.24
2025-01-09 16:37:48,699 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-01-09 16:37:48,709 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-72908044', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-72908044?flat'}
2025-01-09 16:37:48,709 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-72908044 is found in opserver
2025-01-09 16:37:48,720 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 16:37:48,725 - DEBUG - VRF ids for VN ctest-vn-72908044: {}
2025-01-09 16:37:48,785 - DEBUG - Services list from nova: [