2024-10-28 13:24:41,519 - INFO - Domain Default found not creating
2024-10-28 13:24:41,706 - INFO - Project ctest-TestBasicPolicy-00987501 not found, creating it
2024-10-28 13:24:42,250 - INFO - Created Project:ctest-TestBasicPolicy-00987501, ID : 11e506db-ad65-45a4-8733-32f28f3ba2f2
2024-10-28 13:24:43,918 - INFO - ================================================================================
2024-10-28 13:24:43,919 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-28 13:24:43,919 - 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-10-28 13:24:44,189 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.8': '0'}} with
2024-10-28 13:24:44,190 - INFO - Initial checks done. Running the testcase now
2024-10-28 13:24:44,190 - INFO -
2024-10-28 13:24:44,792 - DEBUG - Response for create_network : {'network': {'id': 'd17c87d9-7bc5-4a87-9471-4e71a6674ad2', 'name': 'ctest-vn-39805984', 'tenant_id': '11e506dbad6545a4873332f28f3ba2f2', 'project_id': '11e506dbad6545a4873332f28f3ba2f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00987501', 'ctest-vn-39805984'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 13:24:45,013 - DEBUG - Response for create_subnet : {'subnet': {'id': '2caead6d-1936-48f4-a6c5-94c2d0e58e0d', 'name': '', 'tenant_id': '11e506dbad6545a4873332f28f3ba2f2', 'network_id': 'd17c87d9-7bc5-4a87-9471-4e71a6674ad2', 'ip_version': 4, 'cidr': '216.124.153.128/26', 'allocation_pools': [{'start': '216.124.153.130', 'end': '216.124.153.190'}], 'gateway_ip': '216.124.153.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.124.153.130', 'tags': [], 'project_id': '11e506dbad6545a4873332f28f3ba2f2'}}
2024-10-28 13:24:45,033 - INFO - Created VN ctest-vn-39805984
2024-10-28 13:24:45,094 - DEBUG - VN ctest-vn-39805984 UUID is d17c87d9-7bc5-4a87-9471-4e71a6674ad2
2024-10-28 13:24:45,454 - DEBUG - Response for create_network : {'network': {'id': '2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1', 'name': 'ctest-vn-63613816', 'tenant_id': '11e506dbad6545a4873332f28f3ba2f2', 'project_id': '11e506dbad6545a4873332f28f3ba2f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00987501', 'ctest-vn-63613816'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 13:24:45,697 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c2da947-aee8-4449-9273-83281bd13675', 'name': '', 'tenant_id': '11e506dbad6545a4873332f28f3ba2f2', 'network_id': '2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1', 'ip_version': 4, 'cidr': '105.108.197.192/26', 'allocation_pools': [{'start': '105.108.197.194', 'end': '105.108.197.254'}], 'gateway_ip': '105.108.197.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.108.197.194', 'tags': [], 'project_id': '11e506dbad6545a4873332f28f3ba2f2'}}
2024-10-28 13:24:45,724 - INFO - Created VN ctest-vn-63613816
2024-10-28 13:24:45,786 - DEBUG - VN ctest-vn-63613816 UUID is 2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1
2024-10-28 13:24:45,919 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-39805984, 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-00987501:ctest-vn-63613816, 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-10-28 13:24:46,250 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd17c87d9-7bc5-4a87-9471-4e71a6674ad2', 'name': 'ctest-vn-39805984', 'tenant_id': '11e506dbad6545a4873332f28f3ba2f2', 'project_id': '11e506dbad6545a4873332f28f3ba2f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2caead6d-1936-48f4-a6c5-94c2d0e58e0d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00987501', 'ctest-vn-39805984'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00987501', 'ctest-policy-allow-all-29676893']], 'subnet_ipam': [{'subnet_cidr': '216.124.153.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 13:24:46,651 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1', 'name': 'ctest-vn-63613816', 'tenant_id': '11e506dbad6545a4873332f28f3ba2f2', 'project_id': '11e506dbad6545a4873332f28f3ba2f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c2da947-aee8-4449-9273-83281bd13675'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00987501', 'ctest-vn-63613816'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00987501', 'ctest-policy-allow-all-29676893']], 'subnet_ipam': [{'subnet_cidr': '105.108.197.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 13:24:46,842 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-10-28 13:24:47,158 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-10-28 13:24:47,235 - DEBUG - Requesting: http://10.0.0.52:8082/domain/9d6a080c-da13-4094-a721-2b615a7711a0
2024-10-28 13:24:47,283 - DEBUG - Requesting: http://10.0.0.52:8082/project/11e506db-ad65-45a4-8733-32f28f3ba2f2
2024-10-28 13:24:47,371 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/d17c87d9-7bc5-4a87-9471-4e71a6674ad2
2024-10-28 13:24:47,392 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/d17c87d9-7bc5-4a87-9471-4e71a6674ad2
2024-10-28 13:24:47,409 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/2db0df59-c012-4344-9e7a-ab5976ff4892
2024-10-28 13:24:47,422 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/2db0df59-c012-4344-9e7a-ab5976ff4892
2024-10-28 13:24:47,431 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/ad9837c3-6bf1-42bb-9b12-32effae14889
2024-10-28 13:24:47,441 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 13:24:47,441 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/d17c87d9-7bc5-4a87-9471-4e71a6674ad2
2024-10-28 13:24:47,455 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/2db0df59-c012-4344-9e7a-ab5976ff4892
2024-10-28 13:24:47,484 - INFO - Verified VN network id 9 for VN d17c87d9-7bc5-4a87-9471-4e71a6674ad2
2024-10-28 13:24:47,484 - INFO - Verifications in API Server for VN ctest-vn-39805984 passed
2024-10-28 13:24:47,484 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/d17c87d9-7bc5-4a87-9471-4e71a6674ad2
2024-10-28 13:24:47,498 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/2db0df59-c012-4344-9e7a-ab5976ff4892
2024-10-28 13:24:47,510 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/2db0df59-c012-4344-9e7a-ab5976ff4892
2024-10-28 13:24:47,526 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/ad9837c3-6bf1-42bb-9b12-32effae14889
2024-10-28 13:24:47,545 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-39805984', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00987501', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15095089419193240199', 'uuid-lslong': '10696416840011696850'}, 'enable': 'true', 'created': '2024-10-28T13:24:44', 'last-modified': '2024-10-28T13:24:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.324985'}
2024-10-28 13:24:47,555 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 13:24:47,555 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39805984 passed
2024-10-28 13:24:47,555 - DEBUG - ====Verifying policy data for ctest-vn-39805984 in API_Server ======
2024-10-28 13:24:47,555 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-10-28 13:24:47,565 - DEBUG - Requesting: http://10.0.0.52:8082/domain/9d6a080c-da13-4094-a721-2b615a7711a0
2024-10-28 13:24:47,582 - DEBUG - Requesting: http://10.0.0.52:8082/project/11e506db-ad65-45a4-8733-32f28f3ba2f2
2024-10-28 13:24:47,673 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/d17c87d9-7bc5-4a87-9471-4e71a6674ad2
2024-10-28 13:24:47,689 - DEBUG - ==>Verifying data for policy with id: b54298f7-22cc-45a4-badd-1229d40cb111, fqn: ['default-domain', 'ctest-TestBasicPolicy-00987501', 'ctest-policy-allow-all-29676893']
2024-10-28 13:24:47,689 - INFO - VN ctest-vn-39805984 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 13:24:47,689 - DEBUG - Verifying the vn in opserver
2024-10-28 13:24:47,689 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-39805984 virtual network link through opserver 10.0.0.52
2024-10-28 13:24:47,689 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-10-28 13:24:47,986 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-10-28 13:24:48,053 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-39805984', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-39805984?flat'}
2024-10-28 13:24:48,053 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-39805984 is found in opserver
2024-10-28 13:24:48,064 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 13:24:48,069 - DEBUG - VRF ids for VN ctest-vn-39805984: {}
2024-10-28 13:24:48,069 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-10-28 13:24:48,075 - DEBUG - Requesting: http://10.0.0.52:8082/domain/9d6a080c-da13-4094-a721-2b615a7711a0
2024-10-28 13:24:48,088 - DEBUG - Requesting: http://10.0.0.52:8082/project/11e506db-ad65-45a4-8733-32f28f3ba2f2
2024-10-28 13:24:48,167 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1
2024-10-28 13:24:48,187 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1
2024-10-28 13:24:48,201 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/4f75a678-66ab-4633-acf9-bedc3e529966
2024-10-28 13:24:48,211 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/4f75a678-66ab-4633-acf9-bedc3e529966
2024-10-28 13:24:48,221 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/70b0cf7d-03e1-42bc-a2d0-d34dcbad4625
2024-10-28 13:24:48,229 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 13:24:48,229 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1
2024-10-28 13:24:48,242 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/4f75a678-66ab-4633-acf9-bedc3e529966
2024-10-28 13:24:48,263 - INFO - Verified VN network id 10 for VN 2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1
2024-10-28 13:24:48,263 - INFO - Verifications in API Server for VN ctest-vn-63613816 passed
2024-10-28 13:24:48,264 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1
2024-10-28 13:24:48,282 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/4f75a678-66ab-4633-acf9-bedc3e529966
2024-10-28 13:24:48,295 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/4f75a678-66ab-4633-acf9-bedc3e529966
2024-10-28 13:24:48,305 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/70b0cf7d-03e1-42bc-a2d0-d34dcbad4625
2024-10-28 13:24:48,322 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-63613816', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00987501', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3325169425267575580', 'uuid-lslong': '12241260132844440785'}, 'enable': 'true', 'created': '2024-10-28T13:24:45', 'last-modified': '2024-10-28T13:24:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.773578'}
2024-10-28 13:24:48,332 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 13:24:48,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63613816 passed
2024-10-28 13:24:48,332 - DEBUG - ====Verifying policy data for ctest-vn-63613816 in API_Server ======
2024-10-28 13:24:48,332 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-10-28 13:24:48,340 - DEBUG - Requesting: http://10.0.0.52:8082/domain/9d6a080c-da13-4094-a721-2b615a7711a0
2024-10-28 13:24:48,357 - DEBUG - Requesting: http://10.0.0.52:8082/project/11e506db-ad65-45a4-8733-32f28f3ba2f2
2024-10-28 13:24:48,448 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1
2024-10-28 13:24:48,464 - DEBUG - ==>Verifying data for policy with id: b54298f7-22cc-45a4-badd-1229d40cb111, fqn: ['default-domain', 'ctest-TestBasicPolicy-00987501', 'ctest-policy-allow-all-29676893']
2024-10-28 13:24:48,464 - INFO - VN ctest-vn-63613816 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 13:24:48,464 - DEBUG - Verifying the vn in opserver
2024-10-28 13:24:48,464 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-63613816 virtual network link through opserver 10.0.0.52
2024-10-28 13:24:48,464 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-10-28 13:24:48,477 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-63613816', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-63613816?flat'}
2024-10-28 13:24:48,478 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-63613816 is found in opserver
2024-10-28 13:24:48,491 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 13:24:48,498 - DEBUG - VRF ids for VN ctest-vn-63613816: {}
2024-10-28 13:24:48,567 - DEBUG - Services list from nova: [