2024-10-31 11:36:41,490 - INFO - Domain Default found not creating
2024-10-31 11:36:41,691 - INFO - Project ctest-TestBasicPolicy-71899396 not found, creating it
2024-10-31 11:36:42,225 - INFO - Created Project:ctest-TestBasicPolicy-71899396, ID : 2ad12a87-0fc0-4960-97d0-2a3fb946b23b
2024-10-31 11:36:44,116 - INFO - ================================================================================
2024-10-31 11:36:44,116 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-31 11:36:44,116 - 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-31 11:36:44,387 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.5': '0'}} with
2024-10-31 11:36:44,388 - INFO - Initial checks done. Running the testcase now
2024-10-31 11:36:44,388 - INFO -
2024-10-31 11:36:45,136 - DEBUG - Response for create_network : {'network': {'id': '2150babb-02f0-491d-9cba-a4cda95e08dd', 'name': 'ctest-vn-40025803', 'tenant_id': '2ad12a870fc0496097d02a3fb946b23b', 'project_id': '2ad12a870fc0496097d02a3fb946b23b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71899396', 'ctest-vn-40025803'], 'port_security_enabled': True, 'description': ''}}
2024-10-31 11:36:45,369 - DEBUG - Response for create_subnet : {'subnet': {'id': '52466afa-1cce-47bd-902d-802c19dd6b31', 'name': '', 'tenant_id': '2ad12a870fc0496097d02a3fb946b23b', 'network_id': '2150babb-02f0-491d-9cba-a4cda95e08dd', 'ip_version': 4, 'cidr': '13.246.91.0/26', 'allocation_pools': [{'start': '13.246.91.2', 'end': '13.246.91.62'}], 'gateway_ip': '13.246.91.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.246.91.2', 'tags': [], 'project_id': '2ad12a870fc0496097d02a3fb946b23b'}}
2024-10-31 11:36:45,398 - INFO - Created VN ctest-vn-40025803
2024-10-31 11:36:45,461 - DEBUG - VN ctest-vn-40025803 UUID is 2150babb-02f0-491d-9cba-a4cda95e08dd
2024-10-31 11:36:45,875 - DEBUG - Response for create_network : {'network': {'id': 'b1441535-5ea4-4924-b34f-78f97f3c1c2d', 'name': 'ctest-vn-94836904', 'tenant_id': '2ad12a870fc0496097d02a3fb946b23b', 'project_id': '2ad12a870fc0496097d02a3fb946b23b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71899396', 'ctest-vn-94836904'], 'port_security_enabled': True, 'description': ''}}
2024-10-31 11:36:46,175 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dfd52c3b-1d5e-4625-b118-83b9d63d361e', 'name': '', 'tenant_id': '2ad12a870fc0496097d02a3fb946b23b', 'network_id': 'b1441535-5ea4-4924-b34f-78f97f3c1c2d', 'ip_version': 4, 'cidr': '85.57.0.192/26', 'allocation_pools': [{'start': '85.57.0.194', 'end': '85.57.0.254'}], 'gateway_ip': '85.57.0.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.57.0.194', 'tags': [], 'project_id': '2ad12a870fc0496097d02a3fb946b23b'}}
2024-10-31 11:36:46,201 - INFO - Created VN ctest-vn-94836904
2024-10-31 11:36:46,264 - DEBUG - VN ctest-vn-94836904 UUID is b1441535-5ea4-4924-b34f-78f97f3c1c2d
2024-10-31 11:36:46,411 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71899396:ctest-vn-40025803, 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-71899396:ctest-vn-94836904, 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-31 11:36:46,787 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2150babb-02f0-491d-9cba-a4cda95e08dd', 'name': 'ctest-vn-40025803', 'tenant_id': '2ad12a870fc0496097d02a3fb946b23b', 'project_id': '2ad12a870fc0496097d02a3fb946b23b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['52466afa-1cce-47bd-902d-802c19dd6b31'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71899396', 'ctest-vn-40025803'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71899396', 'ctest-policy-allow-all-35073183']], 'subnet_ipam': [{'subnet_cidr': '13.246.91.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-31 11:36:47,071 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b1441535-5ea4-4924-b34f-78f97f3c1c2d', 'name': 'ctest-vn-94836904', 'tenant_id': '2ad12a870fc0496097d02a3fb946b23b', 'project_id': '2ad12a870fc0496097d02a3fb946b23b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dfd52c3b-1d5e-4625-b118-83b9d63d361e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71899396', 'ctest-vn-94836904'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71899396', 'ctest-policy-allow-all-35073183']], 'subnet_ipam': [{'subnet_cidr': '85.57.0.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-31 11:36:47,265 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-31 11:36:47,622 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-31 11:36:47,663 - DEBUG - Requesting: http://10.0.0.31:8082/domain/30266941-7870-412d-a94d-a196fb9dcdc6
2024-10-31 11:36:47,683 - DEBUG - Requesting: http://10.0.0.31:8082/project/2ad12a87-0fc0-4960-97d0-2a3fb946b23b
2024-10-31 11:36:47,788 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2150babb-02f0-491d-9cba-a4cda95e08dd
2024-10-31 11:36:47,808 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2150babb-02f0-491d-9cba-a4cda95e08dd
2024-10-31 11:36:47,826 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e5fbf030-e7cf-4095-843a-355b77dea22a
2024-10-31 11:36:47,838 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e5fbf030-e7cf-4095-843a-355b77dea22a
2024-10-31 11:36:47,850 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/ae404cdb-e5a1-45e2-af1b-8ea5d3fc1e61
2024-10-31 11:36:47,861 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-31 11:36:47,861 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2150babb-02f0-491d-9cba-a4cda95e08dd
2024-10-31 11:36:47,878 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e5fbf030-e7cf-4095-843a-355b77dea22a
2024-10-31 11:36:47,903 - INFO - Verified VN network id 8 for VN 2150babb-02f0-491d-9cba-a4cda95e08dd
2024-10-31 11:36:47,904 - INFO - Verifications in API Server for VN ctest-vn-40025803 passed
2024-10-31 11:36:47,904 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2150babb-02f0-491d-9cba-a4cda95e08dd
2024-10-31 11:36:47,922 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e5fbf030-e7cf-4095-843a-355b77dea22a
2024-10-31 11:36:47,933 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e5fbf030-e7cf-4095-843a-355b77dea22a
2024-10-31 11:36:47,945 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/ae404cdb-e5a1-45e2-af1b-8ea5d3fc1e61
2024-10-31 11:36:47,964 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71899396:ctest-vn-40025803', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71899396', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2400623913759426845', 'uuid-lslong': '11293520218801703133'}, 'enable': 'true', 'created': '2024-10-31T11:36:45', 'last-modified': '2024-10-31T11:36:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.220716'}
2024-10-31 11:36:47,973 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-31 11:36:47,973 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40025803 passed
2024-10-31 11:36:47,973 - DEBUG - ====Verifying policy data for ctest-vn-40025803 in API_Server ======
2024-10-31 11:36:47,973 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-31 11:36:47,981 - DEBUG - Requesting: http://10.0.0.31:8082/domain/30266941-7870-412d-a94d-a196fb9dcdc6
2024-10-31 11:36:47,999 - DEBUG - Requesting: http://10.0.0.31:8082/project/2ad12a87-0fc0-4960-97d0-2a3fb946b23b
2024-10-31 11:36:48,096 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2150babb-02f0-491d-9cba-a4cda95e08dd
2024-10-31 11:36:48,115 - DEBUG - ==>Verifying data for policy with id: b502308d-77e0-447f-8ef1-bf46beef5177, fqn: ['default-domain', 'ctest-TestBasicPolicy-71899396', 'ctest-policy-allow-all-35073183']
2024-10-31 11:36:48,115 - INFO - VN ctest-vn-40025803 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-31 11:36:48,115 - DEBUG - Verifying the vn in opserver
2024-10-31 11:36:48,115 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71899396:ctest-vn-40025803 virtual network link through opserver 10.0.0.31
2024-10-31 11:36:48,116 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-10-31 11:36:48,462 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-10-31 11:36:48,552 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71899396:ctest-vn-40025803', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71899396:ctest-vn-40025803?flat'}
2024-10-31 11:36:48,552 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71899396:ctest-vn-40025803 is found in opserver
2024-10-31 11:36:48,567 - DEBUG - Do not have enough data to verify VN in agent
2024-10-31 11:36:48,573 - DEBUG - VRF ids for VN ctest-vn-40025803: {}
2024-10-31 11:36:48,574 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-31 11:36:48,582 - DEBUG - Requesting: http://10.0.0.31:8082/domain/30266941-7870-412d-a94d-a196fb9dcdc6
2024-10-31 11:36:48,607 - DEBUG - Requesting: http://10.0.0.31:8082/project/2ad12a87-0fc0-4960-97d0-2a3fb946b23b
2024-10-31 11:36:48,706 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b1441535-5ea4-4924-b34f-78f97f3c1c2d
2024-10-31 11:36:48,729 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b1441535-5ea4-4924-b34f-78f97f3c1c2d
2024-10-31 11:36:48,752 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/80cb0b02-9189-4b0f-8648-14db8aa035bd
2024-10-31 11:36:48,769 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/80cb0b02-9189-4b0f-8648-14db8aa035bd
2024-10-31 11:36:48,783 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/5e8b1db7-b8dd-4c7a-adaf-1b249f7292c5
2024-10-31 11:36:48,797 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-31 11:36:48,797 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b1441535-5ea4-4924-b34f-78f97f3c1c2d
2024-10-31 11:36:48,818 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/80cb0b02-9189-4b0f-8648-14db8aa035bd
2024-10-31 11:36:48,848 - INFO - Verified VN network id 9 for VN b1441535-5ea4-4924-b34f-78f97f3c1c2d
2024-10-31 11:36:48,849 - INFO - Verifications in API Server for VN ctest-vn-94836904 passed
2024-10-31 11:36:48,849 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b1441535-5ea4-4924-b34f-78f97f3c1c2d
2024-10-31 11:36:48,868 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/80cb0b02-9189-4b0f-8648-14db8aa035bd
2024-10-31 11:36:48,880 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/80cb0b02-9189-4b0f-8648-14db8aa035bd
2024-10-31 11:36:48,893 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/5e8b1db7-b8dd-4c7a-adaf-1b249f7292c5
2024-10-31 11:36:48,912 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71899396:ctest-vn-94836904', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71899396', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12773357762094844196', 'uuid-lslong': '12920678868926077997'}, 'enable': 'true', 'created': '2024-10-31T11:36:45', 'last-modified': '2024-10-31T11:36:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.884024'}
2024-10-31 11:36:48,922 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-31 11:36:48,922 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94836904 passed
2024-10-31 11:36:48,922 - DEBUG - ====Verifying policy data for ctest-vn-94836904 in API_Server ======
2024-10-31 11:36:48,922 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-31 11:36:48,932 - DEBUG - Requesting: http://10.0.0.31:8082/domain/30266941-7870-412d-a94d-a196fb9dcdc6
2024-10-31 11:36:48,952 - DEBUG - Requesting: http://10.0.0.31:8082/project/2ad12a87-0fc0-4960-97d0-2a3fb946b23b
2024-10-31 11:36:49,045 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b1441535-5ea4-4924-b34f-78f97f3c1c2d
2024-10-31 11:36:49,064 - DEBUG - ==>Verifying data for policy with id: b502308d-77e0-447f-8ef1-bf46beef5177, fqn: ['default-domain', 'ctest-TestBasicPolicy-71899396', 'ctest-policy-allow-all-35073183']
2024-10-31 11:36:49,064 - INFO - VN ctest-vn-94836904 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-31 11:36:49,064 - DEBUG - Verifying the vn in opserver
2024-10-31 11:36:49,064 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71899396:ctest-vn-94836904 virtual network link through opserver 10.0.0.31
2024-10-31 11:36:49,064 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-10-31 11:36:49,079 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71899396:ctest-vn-94836904', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71899396:ctest-vn-94836904?flat'}
2024-10-31 11:36:49,080 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71899396:ctest-vn-94836904 is found in opserver
2024-10-31 11:36:49,092 - DEBUG - Do not have enough data to verify VN in agent
2024-10-31 11:36:49,099 - DEBUG - VRF ids for VN ctest-vn-94836904: {}
2024-10-31 11:36:49,168 - DEBUG - Services list from nova: [