2024-11-10 20:53:43,454 - INFO - Domain Default found not creating
2024-11-10 20:53:43,640 - INFO - Project ctest-TestBasicPolicy-59196793 not found, creating it
2024-11-10 20:53:44,157 - INFO - Created Project:ctest-TestBasicPolicy-59196793, ID : 1ab397bf-84be-4de5-84fb-05b72d666d64
2024-11-10 20:53:45,783 - INFO - ================================================================================
2024-11-10 20:53:45,783 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-10 20:53:45,783 - 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-11-10 20:53:46,047 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.21': '0'}} with
2024-11-10 20:53:46,047 - INFO - Initial checks done. Running the testcase now
2024-11-10 20:53:46,047 - INFO -
2024-11-10 20:53:46,738 - DEBUG - Response for create_network : {'network': {'id': '4c969ac6-5487-4594-979b-f317951a65f0', 'name': 'ctest-vn-65346687', 'tenant_id': '1ab397bf84be4de584fb05b72d666d64', 'project_id': '1ab397bf84be4de584fb05b72d666d64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59196793', 'ctest-vn-65346687'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 20:53:46,955 - DEBUG - Response for create_subnet : {'subnet': {'id': '58cf21c3-46f2-428f-8ee7-197dc625ffc1', 'name': '', 'tenant_id': '1ab397bf84be4de584fb05b72d666d64', 'network_id': '4c969ac6-5487-4594-979b-f317951a65f0', 'ip_version': 4, 'cidr': '162.227.0.128/26', 'allocation_pools': [{'start': '162.227.0.130', 'end': '162.227.0.190'}], 'gateway_ip': '162.227.0.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.227.0.130', 'tags': [], 'project_id': '1ab397bf84be4de584fb05b72d666d64'}}
2024-11-10 20:53:46,978 - INFO - Created VN ctest-vn-65346687
2024-11-10 20:53:47,037 - DEBUG - VN ctest-vn-65346687 UUID is 4c969ac6-5487-4594-979b-f317951a65f0
2024-11-10 20:53:47,389 - DEBUG - Response for create_network : {'network': {'id': 'e900ec90-801d-456f-b206-f7e9a764669e', 'name': 'ctest-vn-24349052', 'tenant_id': '1ab397bf84be4de584fb05b72d666d64', 'project_id': '1ab397bf84be4de584fb05b72d666d64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59196793', 'ctest-vn-24349052'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 20:53:47,615 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d160ab8-ed68-4919-aaef-1f573138a416', 'name': '', 'tenant_id': '1ab397bf84be4de584fb05b72d666d64', 'network_id': 'e900ec90-801d-456f-b206-f7e9a764669e', 'ip_version': 4, 'cidr': '196.36.239.0/26', 'allocation_pools': [{'start': '196.36.239.2', 'end': '196.36.239.62'}], 'gateway_ip': '196.36.239.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.36.239.2', 'tags': [], 'project_id': '1ab397bf84be4de584fb05b72d666d64'}}
2024-11-10 20:53:47,638 - INFO - Created VN ctest-vn-24349052
2024-11-10 20:53:47,699 - DEBUG - VN ctest-vn-24349052 UUID is e900ec90-801d-456f-b206-f7e9a764669e
2024-11-10 20:53:47,841 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-65346687, 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-59196793:ctest-vn-24349052, 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-11-10 20:53:48,218 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c969ac6-5487-4594-979b-f317951a65f0', 'name': 'ctest-vn-65346687', 'tenant_id': '1ab397bf84be4de584fb05b72d666d64', 'project_id': '1ab397bf84be4de584fb05b72d666d64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['58cf21c3-46f2-428f-8ee7-197dc625ffc1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59196793', 'ctest-vn-65346687'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59196793', 'ctest-policy-allow-all-02534714']], 'subnet_ipam': [{'subnet_cidr': '162.227.0.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 20:53:48,527 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e900ec90-801d-456f-b206-f7e9a764669e', 'name': 'ctest-vn-24349052', 'tenant_id': '1ab397bf84be4de584fb05b72d666d64', 'project_id': '1ab397bf84be4de584fb05b72d666d64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8d160ab8-ed68-4919-aaef-1f573138a416'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59196793', 'ctest-vn-24349052'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59196793', 'ctest-policy-allow-all-02534714']], 'subnet_ipam': [{'subnet_cidr': '196.36.239.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 20:53:48,699 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-10 20:53:49,020 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-10 20:53:49,073 - DEBUG - Requesting: http://10.0.0.41:8082/domain/0bae431d-fc0a-46a2-b6e9-ac05f72c74c2
2024-11-10 20:53:49,092 - DEBUG - Requesting: http://10.0.0.41:8082/project/1ab397bf-84be-4de5-84fb-05b72d666d64
2024-11-10 20:53:49,190 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4c969ac6-5487-4594-979b-f317951a65f0
2024-11-10 20:53:49,209 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4c969ac6-5487-4594-979b-f317951a65f0
2024-11-10 20:53:49,225 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/51ff2f41-22ba-4a1b-8639-b2898fe5bb6e
2024-11-10 20:53:49,237 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/51ff2f41-22ba-4a1b-8639-b2898fe5bb6e
2024-11-10 20:53:49,253 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/9ad96fc9-eceb-41b2-a13f-9d580c6ecce4
2024-11-10 20:53:49,267 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 20:53:49,267 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4c969ac6-5487-4594-979b-f317951a65f0
2024-11-10 20:53:49,284 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/51ff2f41-22ba-4a1b-8639-b2898fe5bb6e
2024-11-10 20:53:49,307 - INFO - Verified VN network id 7 for VN 4c969ac6-5487-4594-979b-f317951a65f0
2024-11-10 20:53:49,307 - INFO - Verifications in API Server for VN ctest-vn-65346687 passed
2024-11-10 20:53:49,308 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4c969ac6-5487-4594-979b-f317951a65f0
2024-11-10 20:53:49,325 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/51ff2f41-22ba-4a1b-8639-b2898fe5bb6e
2024-11-10 20:53:49,335 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/51ff2f41-22ba-4a1b-8639-b2898fe5bb6e
2024-11-10 20:53:49,345 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/9ad96fc9-eceb-41b2-a13f-9d580c6ecce4
2024-11-10 20:53:49,373 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-65346687', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59196793', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5518768570001474964', 'uuid-lslong': '10924592603728602608'}, 'enable': 'true', 'created': '2024-11-10T20:53:46', 'last-modified': '2024-11-10T20:53:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.176195'}
2024-11-10 20:53:49,380 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 20:53:49,380 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65346687 passed
2024-11-10 20:53:49,380 - DEBUG - ====Verifying policy data for ctest-vn-65346687 in API_Server ======
2024-11-10 20:53:49,381 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-10 20:53:49,389 - DEBUG - Requesting: http://10.0.0.41:8082/domain/0bae431d-fc0a-46a2-b6e9-ac05f72c74c2
2024-11-10 20:53:49,407 - DEBUG - Requesting: http://10.0.0.41:8082/project/1ab397bf-84be-4de5-84fb-05b72d666d64
2024-11-10 20:53:49,504 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4c969ac6-5487-4594-979b-f317951a65f0
2024-11-10 20:53:49,533 - DEBUG - ==>Verifying data for policy with id: 6bf902b1-7f11-4094-8790-b7392b55ab76, fqn: ['default-domain', 'ctest-TestBasicPolicy-59196793', 'ctest-policy-allow-all-02534714']
2024-11-10 20:53:49,533 - INFO - VN ctest-vn-65346687 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 20:53:49,534 - DEBUG - Verifying the vn in opserver
2024-11-10 20:53:49,534 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-65346687 virtual network link through opserver 10.0.0.41
2024-11-10 20:53:49,534 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-11-10 20:53:49,837 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-11-10 20:53:49,915 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-65346687', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-65346687?flat'}
2024-11-10 20:53:49,915 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-65346687 is found in opserver
2024-11-10 20:53:49,936 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 20:53:49,943 - DEBUG - VRF ids for VN ctest-vn-65346687: {}
2024-11-10 20:53:49,943 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-10 20:53:49,952 - DEBUG - Requesting: http://10.0.0.41:8082/domain/0bae431d-fc0a-46a2-b6e9-ac05f72c74c2
2024-11-10 20:53:49,969 - DEBUG - Requesting: http://10.0.0.41:8082/project/1ab397bf-84be-4de5-84fb-05b72d666d64
2024-11-10 20:53:50,073 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e900ec90-801d-456f-b206-f7e9a764669e
2024-11-10 20:53:50,097 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e900ec90-801d-456f-b206-f7e9a764669e
2024-11-10 20:53:50,113 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5d6aa1a5-31af-43ac-80e7-c44963b2c0b2
2024-11-10 20:53:50,124 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5d6aa1a5-31af-43ac-80e7-c44963b2c0b2
2024-11-10 20:53:50,134 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/2db3a84f-f6b7-4f7c-8920-2f15af17b4ef
2024-11-10 20:53:50,150 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 20:53:50,150 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e900ec90-801d-456f-b206-f7e9a764669e
2024-11-10 20:53:50,175 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5d6aa1a5-31af-43ac-80e7-c44963b2c0b2
2024-11-10 20:53:50,215 - INFO - Verified VN network id 8 for VN e900ec90-801d-456f-b206-f7e9a764669e
2024-11-10 20:53:50,215 - INFO - Verifications in API Server for VN ctest-vn-24349052 passed
2024-11-10 20:53:50,215 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e900ec90-801d-456f-b206-f7e9a764669e
2024-11-10 20:53:50,236 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5d6aa1a5-31af-43ac-80e7-c44963b2c0b2
2024-11-10 20:53:50,246 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5d6aa1a5-31af-43ac-80e7-c44963b2c0b2
2024-11-10 20:53:50,256 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/2db3a84f-f6b7-4f7c-8920-2f15af17b4ef
2024-11-10 20:53:50,276 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-24349052', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59196793', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16789679516206056815', 'uuid-lslong': '12828213171519252126'}, 'enable': 'true', 'created': '2024-11-10T20:53:47', 'last-modified': '2024-11-10T20:53:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.827544'}
2024-11-10 20:53:50,285 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 20:53:50,285 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24349052 passed
2024-11-10 20:53:50,286 - DEBUG - ====Verifying policy data for ctest-vn-24349052 in API_Server ======
2024-11-10 20:53:50,286 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-10 20:53:50,299 - DEBUG - Requesting: http://10.0.0.41:8082/domain/0bae431d-fc0a-46a2-b6e9-ac05f72c74c2
2024-11-10 20:53:50,313 - DEBUG - Requesting: http://10.0.0.41:8082/project/1ab397bf-84be-4de5-84fb-05b72d666d64
2024-11-10 20:53:50,414 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e900ec90-801d-456f-b206-f7e9a764669e
2024-11-10 20:53:50,428 - DEBUG - ==>Verifying data for policy with id: 6bf902b1-7f11-4094-8790-b7392b55ab76, fqn: ['default-domain', 'ctest-TestBasicPolicy-59196793', 'ctest-policy-allow-all-02534714']
2024-11-10 20:53:50,428 - INFO - VN ctest-vn-24349052 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 20:53:50,428 - DEBUG - Verifying the vn in opserver
2024-11-10 20:53:50,428 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-24349052 virtual network link through opserver 10.0.0.41
2024-11-10 20:53:50,428 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-11-10 20:53:50,441 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-24349052', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-24349052?flat'}
2024-11-10 20:53:50,441 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-24349052 is found in opserver
2024-11-10 20:53:50,454 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 20:53:50,460 - DEBUG - VRF ids for VN ctest-vn-24349052: {}
2024-11-10 20:53:50,531 - DEBUG - Services list from nova: [