2024-09-09 18:58:16,020 - INFO - Domain Default found not creating
2024-09-09 18:58:16,183 - INFO - Project ctest-TestBasicPolicy-52528386 not found, creating it
2024-09-09 18:58:16,668 - INFO - Created Project:ctest-TestBasicPolicy-52528386, ID : c0996595-8135-408f-9c81-6ef28a540f62
2024-09-09 18:58:18,179 - INFO - ================================================================================
2024-09-09 18:58:18,180 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-09 18:58:18,180 - 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
2024-09-09 18:58:18,436 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.10': '0'}} with
2024-09-09 18:58:18,436 - INFO - Initial checks done. Running the testcase now
2024-09-09 18:58:18,436 - INFO -
2024-09-09 18:58:18,992 - DEBUG - Response for create_network : {'network': {'id': 'f0b4c30b-57cf-4783-8790-167913854ec8', 'name': 'ctest-vn-65641978', 'tenant_id': 'c09965958135408f9c816ef28a540f62', 'project_id': 'c09965958135408f9c816ef28a540f62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52528386', 'ctest-vn-65641978'], 'port_security_enabled': True, 'description': ''}}
2024-09-09 18:58:19,154 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a4bea3c-4be6-4c6a-9d38-95217e817cde', 'name': '', 'tenant_id': 'c09965958135408f9c816ef28a540f62', 'network_id': 'f0b4c30b-57cf-4783-8790-167913854ec8', 'ip_version': 4, 'cidr': '83.2.238.0/26', 'allocation_pools': [{'start': '83.2.238.2', 'end': '83.2.238.62'}], 'gateway_ip': '83.2.238.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.2.238.2', 'tags': [], 'project_id': 'c09965958135408f9c816ef28a540f62'}}
2024-09-09 18:58:19,173 - INFO - Created VN ctest-vn-65641978
2024-09-09 18:58:19,225 - DEBUG - VN ctest-vn-65641978 UUID is f0b4c30b-57cf-4783-8790-167913854ec8
2024-09-09 18:58:19,539 - DEBUG - Response for create_network : {'network': {'id': 'a13d3af1-8583-4cae-b4ba-1cc8731977de', 'name': 'ctest-vn-25073194', 'tenant_id': 'c09965958135408f9c816ef28a540f62', 'project_id': 'c09965958135408f9c816ef28a540f62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52528386', 'ctest-vn-25073194'], 'port_security_enabled': True, 'description': ''}}
2024-09-09 18:58:19,739 - DEBUG - Response for create_subnet : {'subnet': {'id': '89f1c3b0-0f48-42ae-9a24-e62a4161edc0', 'name': '', 'tenant_id': 'c09965958135408f9c816ef28a540f62', 'network_id': 'a13d3af1-8583-4cae-b4ba-1cc8731977de', 'ip_version': 4, 'cidr': '178.115.134.0/26', 'allocation_pools': [{'start': '178.115.134.2', 'end': '178.115.134.62'}], 'gateway_ip': '178.115.134.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.115.134.2', 'tags': [], 'project_id': 'c09965958135408f9c816ef28a540f62'}}
2024-09-09 18:58:19,758 - INFO - Created VN ctest-vn-25073194
2024-09-09 18:58:19,809 - DEBUG - VN ctest-vn-25073194 UUID is a13d3af1-8583-4cae-b4ba-1cc8731977de
2024-09-09 18:58:19,922 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52528386:ctest-vn-65641978, 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-52528386:ctest-vn-25073194, 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]
2024-09-09 18:58:20,219 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f0b4c30b-57cf-4783-8790-167913854ec8', 'name': 'ctest-vn-65641978', 'tenant_id': 'c09965958135408f9c816ef28a540f62', 'project_id': 'c09965958135408f9c816ef28a540f62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a4bea3c-4be6-4c6a-9d38-95217e817cde'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52528386', 'ctest-vn-65641978'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52528386', 'ctest-policy-allow-all-01147288']], 'subnet_ipam': [{'subnet_cidr': '83.2.238.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-09 18:58:20,486 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a13d3af1-8583-4cae-b4ba-1cc8731977de', 'name': 'ctest-vn-25073194', 'tenant_id': 'c09965958135408f9c816ef28a540f62', 'project_id': 'c09965958135408f9c816ef28a540f62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['89f1c3b0-0f48-42ae-9a24-e62a4161edc0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52528386', 'ctest-vn-25073194'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52528386', 'ctest-policy-allow-all-01147288']], 'subnet_ipam': [{'subnet_cidr': '178.115.134.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-09 18:58:20,610 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-09-09 18:58:20,909 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-09-09 18:58:20,943 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4bb35836-c53f-48af-a65b-728a595ccf72
2024-09-09 18:58:20,956 - DEBUG - Requesting: http://10.0.0.27:8082/project/c0996595-8135-408f-9c81-6ef28a540f62
2024-09-09 18:58:21,028 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f0b4c30b-57cf-4783-8790-167913854ec8
2024-09-09 18:58:21,038 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f0b4c30b-57cf-4783-8790-167913854ec8
2024-09-09 18:58:21,046 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ebc05b11-b1d8-48f5-802d-bea229b74234
2024-09-09 18:58:21,053 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ebc05b11-b1d8-48f5-802d-bea229b74234
2024-09-09 18:58:21,059 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f94ed859-abd9-412a-b3c4-723d228c79ac
2024-09-09 18:58:21,065 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-09 18:58:21,065 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f0b4c30b-57cf-4783-8790-167913854ec8
2024-09-09 18:58:21,073 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ebc05b11-b1d8-48f5-802d-bea229b74234
2024-09-09 18:58:21,084 - INFO - Verified VN network id 8 for VN f0b4c30b-57cf-4783-8790-167913854ec8
2024-09-09 18:58:21,084 - INFO - Verifications in API Server for VN ctest-vn-65641978 passed
2024-09-09 18:58:21,084 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f0b4c30b-57cf-4783-8790-167913854ec8
2024-09-09 18:58:21,092 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ebc05b11-b1d8-48f5-802d-bea229b74234
2024-09-09 18:58:21,098 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ebc05b11-b1d8-48f5-802d-bea229b74234
2024-09-09 18:58:21,105 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f94ed859-abd9-412a-b3c4-723d228c79ac
2024-09-09 18:58:21,117 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52528386:ctest-vn-65641978', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52528386', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17344702518395881347', 'uuid-lslong': '9768332301040963272'}, 'enable': 'true', 'created': '2024-09-09T18:58:18', 'last-modified': '2024-09-09T18:58:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924738'}
2024-09-09 18:58:21,124 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-09 18:58:21,124 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65641978 passed
2024-09-09 18:58:21,124 - DEBUG - ====Verifying policy data for ctest-vn-65641978 in API_Server ======
2024-09-09 18:58:21,124 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-09-09 18:58:21,130 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4bb35836-c53f-48af-a65b-728a595ccf72
2024-09-09 18:58:21,141 - DEBUG - Requesting: http://10.0.0.27:8082/project/c0996595-8135-408f-9c81-6ef28a540f62
2024-09-09 18:58:21,214 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f0b4c30b-57cf-4783-8790-167913854ec8
2024-09-09 18:58:21,223 - DEBUG - ==>Verifying data for policy with id: b3e28188-6ead-4758-951f-5639205fa9cf, fqn: ['default-domain', 'ctest-TestBasicPolicy-52528386', 'ctest-policy-allow-all-01147288']
2024-09-09 18:58:21,223 - INFO - VN ctest-vn-65641978 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-09 18:58:21,223 - DEBUG - Verifying the vn in opserver
2024-09-09 18:58:21,223 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52528386:ctest-vn-65641978 virtual network link through opserver 10.0.0.27
2024-09-09 18:58:21,223 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-09-09 18:58:21,531 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-09-09 18:58:21,595 - DEBUG - Response Code: 500
2024-09-09 18:58:24,596 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52528386:ctest-vn-65641978 virtual network link through opserver 10.0.0.27
2024-09-09 18:58:24,596 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-09-09 18:58:24,609 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52528386:ctest-vn-65641978', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52528386:ctest-vn-65641978?flat'}
2024-09-09 18:58:24,609 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52528386:ctest-vn-65641978 is found in opserver
2024-09-09 18:58:24,619 - DEBUG - Do not have enough data to verify VN in agent
2024-09-09 18:58:24,624 - DEBUG - VRF ids for VN ctest-vn-65641978: {}
2024-09-09 18:58:24,624 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-09-09 18:58:24,630 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4bb35836-c53f-48af-a65b-728a595ccf72
2024-09-09 18:58:24,642 - DEBUG - Requesting: http://10.0.0.27:8082/project/c0996595-8135-408f-9c81-6ef28a540f62
2024-09-09 18:58:24,708 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a13d3af1-8583-4cae-b4ba-1cc8731977de
2024-09-09 18:58:24,719 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a13d3af1-8583-4cae-b4ba-1cc8731977de
2024-09-09 18:58:24,726 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e0556d6a-91c3-4717-8829-b47a7c5a4c2c
2024-09-09 18:58:24,733 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e0556d6a-91c3-4717-8829-b47a7c5a4c2c
2024-09-09 18:58:24,739 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5bf03fbd-559e-44f8-b7d7-81e9010cfc39
2024-09-09 18:58:24,745 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-09 18:58:24,745 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a13d3af1-8583-4cae-b4ba-1cc8731977de
2024-09-09 18:58:24,753 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e0556d6a-91c3-4717-8829-b47a7c5a4c2c
2024-09-09 18:58:24,764 - INFO - Verified VN network id 9 for VN a13d3af1-8583-4cae-b4ba-1cc8731977de
2024-09-09 18:58:24,764 - INFO - Verifications in API Server for VN ctest-vn-25073194 passed
2024-09-09 18:58:24,764 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a13d3af1-8583-4cae-b4ba-1cc8731977de
2024-09-09 18:58:24,773 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e0556d6a-91c3-4717-8829-b47a7c5a4c2c
2024-09-09 18:58:24,779 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e0556d6a-91c3-4717-8829-b47a7c5a4c2c
2024-09-09 18:58:24,786 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5bf03fbd-559e-44f8-b7d7-81e9010cfc39
2024-09-09 18:58:24,798 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52528386:ctest-vn-25073194', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52528386', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11618507422687251630', 'uuid-lslong': '13022752919745296350'}, 'enable': 'true', 'created': '2024-09-09T18:58:19', 'last-modified': '2024-09-09T18:58:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.376913'}
2024-09-09 18:58:24,805 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-09 18:58:24,805 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25073194 passed
2024-09-09 18:58:24,805 - DEBUG - ====Verifying policy data for ctest-vn-25073194 in API_Server ======
2024-09-09 18:58:24,805 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-09-09 18:58:24,810 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4bb35836-c53f-48af-a65b-728a595ccf72
2024-09-09 18:58:24,822 - DEBUG - Requesting: http://10.0.0.27:8082/project/c0996595-8135-408f-9c81-6ef28a540f62
2024-09-09 18:58:24,892 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a13d3af1-8583-4cae-b4ba-1cc8731977de
2024-09-09 18:58:24,901 - DEBUG - ==>Verifying data for policy with id: b3e28188-6ead-4758-951f-5639205fa9cf, fqn: ['default-domain', 'ctest-TestBasicPolicy-52528386', 'ctest-policy-allow-all-01147288']
2024-09-09 18:58:24,901 - INFO - VN ctest-vn-25073194 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-09 18:58:24,901 - DEBUG - Verifying the vn in opserver
2024-09-09 18:58:24,901 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52528386:ctest-vn-25073194 virtual network link through opserver 10.0.0.27
2024-09-09 18:58:24,901 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-09-09 18:58:24,911 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52528386:ctest-vn-25073194', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52528386:ctest-vn-25073194?flat'}
2024-09-09 18:58:24,911 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52528386:ctest-vn-25073194 is found in opserver
2024-09-09 18:58:24,922 - DEBUG - Do not have enough data to verify VN in agent
2024-09-09 18:58:24,926 - DEBUG - VRF ids for VN ctest-vn-25073194: {}
2024-09-09 18:58:24,994 - DEBUG - Services list from nova: [