2024-09-15 21:53:58,284 - INFO - Domain Default found not creating
2024-09-15 21:53:58,434 - INFO - Project ctest-TestBasicPolicy-20385261 not found, creating it
2024-09-15 21:53:58,910 - INFO - Created Project:ctest-TestBasicPolicy-20385261, ID : 81442790-ece4-4911-90d1-dd0cc043a0cf
2024-09-15 21:54:00,517 - INFO - ================================================================================
2024-09-15 21:54:00,517 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-15 21:54:00,517 - 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-15 21:54:00,775 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.10': '0'}} with
2024-09-15 21:54:00,775 - INFO - Initial checks done. Running the testcase now
2024-09-15 21:54:00,775 - INFO -
2024-09-15 21:54:01,360 - DEBUG - Response for create_network : {'network': {'id': '9685ee59-f22c-41b7-98b5-33ea4faddad3', 'name': 'ctest-vn-75335020', 'tenant_id': '81442790ece4491190d1dd0cc043a0cf', 'project_id': '81442790ece4491190d1dd0cc043a0cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20385261', 'ctest-vn-75335020'], 'port_security_enabled': True, 'description': ''}}
2024-09-15 21:54:01,549 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b08a48c1-aea8-4f14-8e4f-54235e76e60b', 'name': '', 'tenant_id': '81442790ece4491190d1dd0cc043a0cf', 'network_id': '9685ee59-f22c-41b7-98b5-33ea4faddad3', 'ip_version': 4, 'cidr': '6.10.43.128/26', 'allocation_pools': [{'start': '6.10.43.130', 'end': '6.10.43.190'}], 'gateway_ip': '6.10.43.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.10.43.130', 'tags': [], 'project_id': '81442790ece4491190d1dd0cc043a0cf'}}
2024-09-15 21:54:01,568 - INFO - Created VN ctest-vn-75335020
2024-09-15 21:54:01,624 - DEBUG - VN ctest-vn-75335020 UUID is 9685ee59-f22c-41b7-98b5-33ea4faddad3
2024-09-15 21:54:01,984 - DEBUG - Response for create_network : {'network': {'id': '3433db8d-91b2-441e-aad0-2fcf7a4fd768', 'name': 'ctest-vn-36642500', 'tenant_id': '81442790ece4491190d1dd0cc043a0cf', 'project_id': '81442790ece4491190d1dd0cc043a0cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20385261', 'ctest-vn-36642500'], 'port_security_enabled': True, 'description': ''}}
2024-09-15 21:54:02,152 - DEBUG - Response for create_subnet : {'subnet': {'id': '84f6542f-56a6-479a-9f2a-f90dc74cc1d8', 'name': '', 'tenant_id': '81442790ece4491190d1dd0cc043a0cf', 'network_id': '3433db8d-91b2-441e-aad0-2fcf7a4fd768', 'ip_version': 4, 'cidr': '171.11.168.128/26', 'allocation_pools': [{'start': '171.11.168.130', 'end': '171.11.168.190'}], 'gateway_ip': '171.11.168.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.11.168.130', 'tags': [], 'project_id': '81442790ece4491190d1dd0cc043a0cf'}}
2024-09-15 21:54:02,171 - INFO - Created VN ctest-vn-36642500
2024-09-15 21:54:02,229 - DEBUG - VN ctest-vn-36642500 UUID is 3433db8d-91b2-441e-aad0-2fcf7a4fd768
2024-09-15 21:54:02,357 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20385261:ctest-vn-75335020, 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-20385261:ctest-vn-36642500, 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-15 21:54:02,677 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9685ee59-f22c-41b7-98b5-33ea4faddad3', 'name': 'ctest-vn-75335020', 'tenant_id': '81442790ece4491190d1dd0cc043a0cf', 'project_id': '81442790ece4491190d1dd0cc043a0cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b08a48c1-aea8-4f14-8e4f-54235e76e60b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20385261', 'ctest-vn-75335020'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20385261', 'ctest-policy-allow-all-44640103']], 'subnet_ipam': [{'subnet_cidr': '6.10.43.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-15 21:54:02,964 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3433db8d-91b2-441e-aad0-2fcf7a4fd768', 'name': 'ctest-vn-36642500', 'tenant_id': '81442790ece4491190d1dd0cc043a0cf', 'project_id': '81442790ece4491190d1dd0cc043a0cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84f6542f-56a6-479a-9f2a-f90dc74cc1d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20385261', 'ctest-vn-36642500'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20385261', 'ctest-policy-allow-all-44640103']], 'subnet_ipam': [{'subnet_cidr': '171.11.168.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-15 21:54:03,124 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-09-15 21:54:03,425 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-09-15 21:54:03,456 - DEBUG - Requesting: http://10.0.0.44:8082/domain/a347567c-8b5f-4037-8f0a-8e460d02fa8f
2024-09-15 21:54:03,478 - DEBUG - Requesting: http://10.0.0.44:8082/project/81442790-ece4-4911-90d1-dd0cc043a0cf
2024-09-15 21:54:03,562 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/9685ee59-f22c-41b7-98b5-33ea4faddad3
2024-09-15 21:54:03,577 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/9685ee59-f22c-41b7-98b5-33ea4faddad3
2024-09-15 21:54:03,591 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/b0edbf1e-5289-4b9f-8e7b-18691387990d
2024-09-15 21:54:03,600 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/b0edbf1e-5289-4b9f-8e7b-18691387990d
2024-09-15 21:54:03,608 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/2392afa4-723b-47ee-94a0-e1965e70b796
2024-09-15 21:54:03,615 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-15 21:54:03,615 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/9685ee59-f22c-41b7-98b5-33ea4faddad3
2024-09-15 21:54:03,630 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/b0edbf1e-5289-4b9f-8e7b-18691387990d
2024-09-15 21:54:03,649 - INFO - Verified VN network id 9 for VN 9685ee59-f22c-41b7-98b5-33ea4faddad3
2024-09-15 21:54:03,649 - INFO - Verifications in API Server for VN ctest-vn-75335020 passed
2024-09-15 21:54:03,650 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/9685ee59-f22c-41b7-98b5-33ea4faddad3
2024-09-15 21:54:03,663 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/b0edbf1e-5289-4b9f-8e7b-18691387990d
2024-09-15 21:54:03,671 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/b0edbf1e-5289-4b9f-8e7b-18691387990d
2024-09-15 21:54:03,678 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/2392afa4-723b-47ee-94a0-e1965e70b796
2024-09-15 21:54:03,692 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20385261:ctest-vn-75335020', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20385261', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10846337347674194359', 'uuid-lslong': '11003758346001832659'}, 'enable': 'true', 'created': '2024-09-15T21:54:01', 'last-modified': '2024-09-15T21:54:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.047983'}
2024-09-15 21:54:03,700 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-15 21:54:03,700 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75335020 passed
2024-09-15 21:54:03,700 - DEBUG - ====Verifying policy data for ctest-vn-75335020 in API_Server ======
2024-09-15 21:54:03,700 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-09-15 21:54:03,706 - DEBUG - Requesting: http://10.0.0.44:8082/domain/a347567c-8b5f-4037-8f0a-8e460d02fa8f
2024-09-15 21:54:03,719 - DEBUG - Requesting: http://10.0.0.44:8082/project/81442790-ece4-4911-90d1-dd0cc043a0cf
2024-09-15 21:54:03,802 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/9685ee59-f22c-41b7-98b5-33ea4faddad3
2024-09-15 21:54:03,818 - DEBUG - ==>Verifying data for policy with id: 32c417da-f279-4ee1-b4e9-e52d4052c28a, fqn: ['default-domain', 'ctest-TestBasicPolicy-20385261', 'ctest-policy-allow-all-44640103']
2024-09-15 21:54:03,818 - INFO - VN ctest-vn-75335020 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-15 21:54:03,818 - DEBUG - Verifying the vn in opserver
2024-09-15 21:54:03,818 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20385261:ctest-vn-75335020 virtual network link through opserver 10.0.0.44
2024-09-15 21:54:03,818 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-09-15 21:54:04,116 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-09-15 21:54:04,178 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20385261:ctest-vn-75335020', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20385261:ctest-vn-75335020?flat'}
2024-09-15 21:54:04,178 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20385261:ctest-vn-75335020 is found in opserver
2024-09-15 21:54:04,189 - DEBUG - Do not have enough data to verify VN in agent
2024-09-15 21:54:04,194 - DEBUG - VRF ids for VN ctest-vn-75335020: {}
2024-09-15 21:54:04,195 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-09-15 21:54:04,200 - DEBUG - Requesting: http://10.0.0.44:8082/domain/a347567c-8b5f-4037-8f0a-8e460d02fa8f
2024-09-15 21:54:04,213 - DEBUG - Requesting: http://10.0.0.44:8082/project/81442790-ece4-4911-90d1-dd0cc043a0cf
2024-09-15 21:54:04,287 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/3433db8d-91b2-441e-aad0-2fcf7a4fd768
2024-09-15 21:54:04,303 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/3433db8d-91b2-441e-aad0-2fcf7a4fd768
2024-09-15 21:54:04,315 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/98a831bf-111a-4d5a-8762-f46f942f1c77
2024-09-15 21:54:04,323 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/98a831bf-111a-4d5a-8762-f46f942f1c77
2024-09-15 21:54:04,331 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/9b03eeea-403d-4a71-9d8f-cf3c876e0362
2024-09-15 21:54:04,338 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-15 21:54:04,338 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/3433db8d-91b2-441e-aad0-2fcf7a4fd768
2024-09-15 21:54:04,352 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/98a831bf-111a-4d5a-8762-f46f942f1c77
2024-09-15 21:54:04,372 - INFO - Verified VN network id 10 for VN 3433db8d-91b2-441e-aad0-2fcf7a4fd768
2024-09-15 21:54:04,372 - INFO - Verifications in API Server for VN ctest-vn-36642500 passed
2024-09-15 21:54:04,372 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/3433db8d-91b2-441e-aad0-2fcf7a4fd768
2024-09-15 21:54:04,387 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/98a831bf-111a-4d5a-8762-f46f942f1c77
2024-09-15 21:54:04,397 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/98a831bf-111a-4d5a-8762-f46f942f1c77
2024-09-15 21:54:04,405 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/9b03eeea-403d-4a71-9d8f-cf3c876e0362
2024-09-15 21:54:04,418 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20385261:ctest-vn-36642500', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20385261', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3761591514865746974', 'uuid-lslong': '12308390349760354152'}, 'enable': 'true', 'created': '2024-09-15T21:54:01', 'last-modified': '2024-09-15T21:54:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.521956'}
2024-09-15 21:54:04,426 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-15 21:54:04,426 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36642500 passed
2024-09-15 21:54:04,426 - DEBUG - ====Verifying policy data for ctest-vn-36642500 in API_Server ======
2024-09-15 21:54:04,426 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-09-15 21:54:04,433 - DEBUG - Requesting: http://10.0.0.44:8082/domain/a347567c-8b5f-4037-8f0a-8e460d02fa8f
2024-09-15 21:54:04,448 - DEBUG - Requesting: http://10.0.0.44:8082/project/81442790-ece4-4911-90d1-dd0cc043a0cf
2024-09-15 21:54:04,526 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/3433db8d-91b2-441e-aad0-2fcf7a4fd768
2024-09-15 21:54:04,540 - DEBUG - ==>Verifying data for policy with id: 32c417da-f279-4ee1-b4e9-e52d4052c28a, fqn: ['default-domain', 'ctest-TestBasicPolicy-20385261', 'ctest-policy-allow-all-44640103']
2024-09-15 21:54:04,540 - INFO - VN ctest-vn-36642500 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-15 21:54:04,540 - DEBUG - Verifying the vn in opserver
2024-09-15 21:54:04,540 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20385261:ctest-vn-36642500 virtual network link through opserver 10.0.0.44
2024-09-15 21:54:04,540 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-09-15 21:54:04,551 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20385261:ctest-vn-36642500', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20385261:ctest-vn-36642500?flat'}
2024-09-15 21:54:04,551 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20385261:ctest-vn-36642500 is found in opserver
2024-09-15 21:54:04,564 - DEBUG - Do not have enough data to verify VN in agent
2024-09-15 21:54:04,570 - DEBUG - VRF ids for VN ctest-vn-36642500: {}
2024-09-15 21:54:04,622 - DEBUG - Services list from nova: [