2024-11-14 22:48:15,353 - INFO - Domain Default found not creating
2024-11-14 22:48:15,524 - INFO - Project ctest-TestBasicPolicy-96219728 not found, creating it
2024-11-14 22:48:16,020 - INFO - Created Project:ctest-TestBasicPolicy-96219728, ID : d3861771-9bd2-46bb-b752-f62b0191b4cf
2024-11-14 22:48:17,703 - INFO - ================================================================================
2024-11-14 22:48:17,703 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-14 22:48:17,703 - 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-14 22:48:17,964 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.7': '0'}} with
2024-11-14 22:48:17,964 - INFO - Initial checks done. Running the testcase now
2024-11-14 22:48:17,964 - INFO -
2024-11-14 22:48:18,601 - DEBUG - Response for create_network : {'network': {'id': '9e700b4b-b58f-4fe8-9e3c-4acf696820b5', 'name': 'ctest-vn-61748701', 'tenant_id': 'd38617719bd246bbb752f62b0191b4cf', 'project_id': 'd38617719bd246bbb752f62b0191b4cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96219728', 'ctest-vn-61748701'], 'port_security_enabled': True, 'description': ''}}
2024-11-14 22:48:18,820 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b996a9fd-9776-4f7b-bd76-cba03bf5e937', 'name': '', 'tenant_id': 'd38617719bd246bbb752f62b0191b4cf', 'network_id': '9e700b4b-b58f-4fe8-9e3c-4acf696820b5', 'ip_version': 4, 'cidr': '99.91.42.128/26', 'allocation_pools': [{'start': '99.91.42.130', 'end': '99.91.42.190'}], 'gateway_ip': '99.91.42.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.91.42.130', 'tags': [], 'project_id': 'd38617719bd246bbb752f62b0191b4cf'}}
2024-11-14 22:48:18,841 - INFO - Created VN ctest-vn-61748701
2024-11-14 22:48:18,901 - DEBUG - VN ctest-vn-61748701 UUID is 9e700b4b-b58f-4fe8-9e3c-4acf696820b5
2024-11-14 22:48:19,238 - DEBUG - Response for create_network : {'network': {'id': '399ab565-f562-48ff-8ff9-1fd1962a384c', 'name': 'ctest-vn-62427966', 'tenant_id': 'd38617719bd246bbb752f62b0191b4cf', 'project_id': 'd38617719bd246bbb752f62b0191b4cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96219728', 'ctest-vn-62427966'], 'port_security_enabled': True, 'description': ''}}
2024-11-14 22:48:19,475 - DEBUG - Response for create_subnet : {'subnet': {'id': '64e26c2c-ea6d-4d5e-82eb-b889a5145f8c', 'name': '', 'tenant_id': 'd38617719bd246bbb752f62b0191b4cf', 'network_id': '399ab565-f562-48ff-8ff9-1fd1962a384c', 'ip_version': 4, 'cidr': '51.83.226.64/26', 'allocation_pools': [{'start': '51.83.226.66', 'end': '51.83.226.126'}], 'gateway_ip': '51.83.226.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.83.226.66', 'tags': [], 'project_id': 'd38617719bd246bbb752f62b0191b4cf'}}
2024-11-14 22:48:19,497 - INFO - Created VN ctest-vn-62427966
2024-11-14 22:48:19,557 - DEBUG - VN ctest-vn-62427966 UUID is 399ab565-f562-48ff-8ff9-1fd1962a384c
2024-11-14 22:48:19,683 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-61748701, 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-96219728:ctest-vn-62427966, 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-14 22:48:20,006 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9e700b4b-b58f-4fe8-9e3c-4acf696820b5', 'name': 'ctest-vn-61748701', 'tenant_id': 'd38617719bd246bbb752f62b0191b4cf', 'project_id': 'd38617719bd246bbb752f62b0191b4cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b996a9fd-9776-4f7b-bd76-cba03bf5e937'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96219728', 'ctest-vn-61748701'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96219728', 'ctest-policy-allow-all-16004154']], 'subnet_ipam': [{'subnet_cidr': '99.91.42.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-14 22:48:20,261 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '399ab565-f562-48ff-8ff9-1fd1962a384c', 'name': 'ctest-vn-62427966', 'tenant_id': 'd38617719bd246bbb752f62b0191b4cf', 'project_id': 'd38617719bd246bbb752f62b0191b4cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64e26c2c-ea6d-4d5e-82eb-b889a5145f8c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96219728', 'ctest-vn-62427966'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96219728', 'ctest-policy-allow-all-16004154']], 'subnet_ipam': [{'subnet_cidr': '51.83.226.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-14 22:48:20,449 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-11-14 22:48:20,786 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-11-14 22:48:20,819 - DEBUG - Requesting: http://10.0.0.30:8082/domain/c56f743f-a40d-4a56-92f1-1c6265b25781
2024-11-14 22:48:20,835 - DEBUG - Requesting: http://10.0.0.30:8082/project/d3861771-9bd2-46bb-b752-f62b0191b4cf
2024-11-14 22:48:20,921 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9e700b4b-b58f-4fe8-9e3c-4acf696820b5
2024-11-14 22:48:20,939 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9e700b4b-b58f-4fe8-9e3c-4acf696820b5
2024-11-14 22:48:20,954 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6424f1ab-596a-428f-b3a8-82caf1a4f34a
2024-11-14 22:48:20,963 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6424f1ab-596a-428f-b3a8-82caf1a4f34a
2024-11-14 22:48:20,973 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/7386d1a5-dfaa-4e44-9dbc-39ff51d2c844
2024-11-14 22:48:20,981 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-14 22:48:20,981 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9e700b4b-b58f-4fe8-9e3c-4acf696820b5
2024-11-14 22:48:20,996 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6424f1ab-596a-428f-b3a8-82caf1a4f34a
2024-11-14 22:48:21,020 - INFO - Verified VN network id 9 for VN 9e700b4b-b58f-4fe8-9e3c-4acf696820b5
2024-11-14 22:48:21,020 - INFO - Verifications in API Server for VN ctest-vn-61748701 passed
2024-11-14 22:48:21,020 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9e700b4b-b58f-4fe8-9e3c-4acf696820b5
2024-11-14 22:48:21,037 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6424f1ab-596a-428f-b3a8-82caf1a4f34a
2024-11-14 22:48:21,046 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6424f1ab-596a-428f-b3a8-82caf1a4f34a
2024-11-14 22:48:21,056 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/7386d1a5-dfaa-4e44-9dbc-39ff51d2c844
2024-11-14 22:48:21,070 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-61748701', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96219728', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11416637475180728296', 'uuid-lslong': '11402070611282370741'}, 'enable': 'true', 'created': '2024-11-14T22:48:18', 'last-modified': '2024-11-14T22:48:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.093387'}
2024-11-14 22:48:21,077 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-14 22:48:21,077 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61748701 passed
2024-11-14 22:48:21,077 - DEBUG - ====Verifying policy data for ctest-vn-61748701 in API_Server ======
2024-11-14 22:48:21,078 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-11-14 22:48:21,084 - DEBUG - Requesting: http://10.0.0.30:8082/domain/c56f743f-a40d-4a56-92f1-1c6265b25781
2024-11-14 22:48:21,099 - DEBUG - Requesting: http://10.0.0.30:8082/project/d3861771-9bd2-46bb-b752-f62b0191b4cf
2024-11-14 22:48:21,186 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9e700b4b-b58f-4fe8-9e3c-4acf696820b5
2024-11-14 22:48:21,203 - DEBUG - ==>Verifying data for policy with id: 5f3f2f27-ec89-4667-a330-3cc9d2f3244d, fqn: ['default-domain', 'ctest-TestBasicPolicy-96219728', 'ctest-policy-allow-all-16004154']
2024-11-14 22:48:21,203 - INFO - VN ctest-vn-61748701 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-14 22:48:21,203 - DEBUG - Verifying the vn in opserver
2024-11-14 22:48:21,203 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-61748701 virtual network link through opserver 10.0.0.30
2024-11-14 22:48:21,203 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-11-14 22:48:21,542 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-11-14 22:48:21,607 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-61748701', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-61748701?flat'}
2024-11-14 22:48:21,607 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-61748701 is found in opserver
2024-11-14 22:48:21,618 - DEBUG - Do not have enough data to verify VN in agent
2024-11-14 22:48:21,624 - DEBUG - VRF ids for VN ctest-vn-61748701: {}
2024-11-14 22:48:21,624 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-11-14 22:48:21,630 - DEBUG - Requesting: http://10.0.0.30:8082/domain/c56f743f-a40d-4a56-92f1-1c6265b25781
2024-11-14 22:48:21,646 - DEBUG - Requesting: http://10.0.0.30:8082/project/d3861771-9bd2-46bb-b752-f62b0191b4cf
2024-11-14 22:48:21,729 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/399ab565-f562-48ff-8ff9-1fd1962a384c
2024-11-14 22:48:21,747 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/399ab565-f562-48ff-8ff9-1fd1962a384c
2024-11-14 22:48:21,762 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/7e60e5bd-22e3-4ac3-84d7-69080380fecb
2024-11-14 22:48:21,771 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/7e60e5bd-22e3-4ac3-84d7-69080380fecb
2024-11-14 22:48:21,779 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/41d47b45-5b5c-4372-ac01-3e7a94984c75
2024-11-14 22:48:21,786 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-14 22:48:21,786 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/399ab565-f562-48ff-8ff9-1fd1962a384c
2024-11-14 22:48:21,800 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/7e60e5bd-22e3-4ac3-84d7-69080380fecb
2024-11-14 22:48:21,820 - INFO - Verified VN network id 10 for VN 399ab565-f562-48ff-8ff9-1fd1962a384c
2024-11-14 22:48:21,820 - INFO - Verifications in API Server for VN ctest-vn-62427966 passed
2024-11-14 22:48:21,820 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/399ab565-f562-48ff-8ff9-1fd1962a384c
2024-11-14 22:48:21,835 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/7e60e5bd-22e3-4ac3-84d7-69080380fecb
2024-11-14 22:48:21,843 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/7e60e5bd-22e3-4ac3-84d7-69080380fecb
2024-11-14 22:48:21,851 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/41d47b45-5b5c-4372-ac01-3e7a94984c75
2024-11-14 22:48:21,865 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-62427966', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96219728', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4150829456088516863', 'uuid-lslong': '10374358201652623436'}, 'enable': 'true', 'created': '2024-11-14T22:48:19', 'last-modified': '2024-11-14T22:48:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.630694'}
2024-11-14 22:48:21,871 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-14 22:48:21,871 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62427966 passed
2024-11-14 22:48:21,871 - DEBUG - ====Verifying policy data for ctest-vn-62427966 in API_Server ======
2024-11-14 22:48:21,871 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-11-14 22:48:21,877 - DEBUG - Requesting: http://10.0.0.30:8082/domain/c56f743f-a40d-4a56-92f1-1c6265b25781
2024-11-14 22:48:21,891 - DEBUG - Requesting: http://10.0.0.30:8082/project/d3861771-9bd2-46bb-b752-f62b0191b4cf
2024-11-14 22:48:21,974 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/399ab565-f562-48ff-8ff9-1fd1962a384c
2024-11-14 22:48:21,989 - DEBUG - ==>Verifying data for policy with id: 5f3f2f27-ec89-4667-a330-3cc9d2f3244d, fqn: ['default-domain', 'ctest-TestBasicPolicy-96219728', 'ctest-policy-allow-all-16004154']
2024-11-14 22:48:21,989 - INFO - VN ctest-vn-62427966 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-14 22:48:21,989 - DEBUG - Verifying the vn in opserver
2024-11-14 22:48:21,990 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-62427966 virtual network link through opserver 10.0.0.30
2024-11-14 22:48:21,990 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-11-14 22:48:22,003 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-62427966', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-62427966?flat'}
2024-11-14 22:48:22,003 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-62427966 is found in opserver
2024-11-14 22:48:22,015 - DEBUG - Do not have enough data to verify VN in agent
2024-11-14 22:48:22,021 - DEBUG - VRF ids for VN ctest-vn-62427966: {}
2024-11-14 22:48:22,079 - DEBUG - Services list from nova: [