2024-08-21 18:57:00,790 - INFO - Domain Default found not creating
2024-08-21 18:57:00,949 - INFO - Project ctest-TestBasicPolicy-58069638 not found, creating it
2024-08-21 18:57:01,434 - INFO - Created Project:ctest-TestBasicPolicy-58069638, ID : 5ed2c1fd-31c8-4dac-a8b6-8e378d19f8fd
2024-08-21 18:57:02,949 - INFO - ================================================================================
2024-08-21 18:57:02,949 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-21 18:57:02,949 - 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-08-21 18:57:03,205 - DEBUG - Nothing to compare xmpp stats {'10.0.0.55': {'10.20.0.5': '0'}} with
2024-08-21 18:57:03,205 - INFO - Initial checks done. Running the testcase now
2024-08-21 18:57:03,206 - INFO -
2024-08-21 18:57:03,789 - DEBUG - Response for create_network : {'network': {'id': '76a3e888-a8fe-4493-ad8b-69e90839fb3c', 'name': 'ctest-vn-44892047', 'tenant_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'project_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58069638', 'ctest-vn-44892047'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 18:57:03,986 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e7fc88e-12a7-484b-b196-70057f92bcda', 'name': '', 'tenant_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'network_id': '76a3e888-a8fe-4493-ad8b-69e90839fb3c', 'ip_version': 4, 'cidr': '84.176.36.128/26', 'allocation_pools': [{'start': '84.176.36.130', 'end': '84.176.36.190'}], 'gateway_ip': '84.176.36.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.176.36.130', 'tags': [], 'project_id': '5ed2c1fd31c84daca8b68e378d19f8fd'}}
2024-08-21 18:57:04,008 - INFO - Created VN ctest-vn-44892047
2024-08-21 18:57:04,060 - DEBUG - VN ctest-vn-44892047 UUID is 76a3e888-a8fe-4493-ad8b-69e90839fb3c
2024-08-21 18:57:04,355 - DEBUG - Response for create_network : {'network': {'id': '6a2fc8d6-0c65-4f22-9a77-32ea8dc42019', 'name': 'ctest-vn-14582809', 'tenant_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'project_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58069638', 'ctest-vn-14582809'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 18:57:04,520 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e66c0dc0-430f-4b20-8644-41003b98a0fd', 'name': '', 'tenant_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'network_id': '6a2fc8d6-0c65-4f22-9a77-32ea8dc42019', 'ip_version': 4, 'cidr': '62.66.167.64/26', 'allocation_pools': [{'start': '62.66.167.66', 'end': '62.66.167.126'}], 'gateway_ip': '62.66.167.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.66.167.66', 'tags': [], 'project_id': '5ed2c1fd31c84daca8b68e378d19f8fd'}}
2024-08-21 18:57:04,539 - INFO - Created VN ctest-vn-14582809
2024-08-21 18:57:04,588 - DEBUG - VN ctest-vn-14582809 UUID is 6a2fc8d6-0c65-4f22-9a77-32ea8dc42019
2024-08-21 18:57:04,708 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-44892047, 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-58069638:ctest-vn-14582809, 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-08-21 18:57:04,998 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '76a3e888-a8fe-4493-ad8b-69e90839fb3c', 'name': 'ctest-vn-44892047', 'tenant_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'project_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e7fc88e-12a7-484b-b196-70057f92bcda'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58069638', 'ctest-vn-44892047'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58069638', 'ctest-policy-allow-all-99903820']], 'subnet_ipam': [{'subnet_cidr': '84.176.36.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 18:57:05,251 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a2fc8d6-0c65-4f22-9a77-32ea8dc42019', 'name': 'ctest-vn-14582809', 'tenant_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'project_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e66c0dc0-430f-4b20-8644-41003b98a0fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58069638', 'ctest-vn-14582809'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58069638', 'ctest-policy-allow-all-99903820']], 'subnet_ipam': [{'subnet_cidr': '62.66.167.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 18:57:05,424 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2024-08-21 18:57:05,723 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2024-08-21 18:57:05,755 - DEBUG - Requesting: http://10.0.0.55:8082/domain/8ce7fad6-ebae-4f5e-be79-040a5c67b5c9
2024-08-21 18:57:05,770 - DEBUG - Requesting: http://10.0.0.55:8082/project/5ed2c1fd-31c8-4dac-a8b6-8e378d19f8fd
2024-08-21 18:57:05,841 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/76a3e888-a8fe-4493-ad8b-69e90839fb3c
2024-08-21 18:57:05,850 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/76a3e888-a8fe-4493-ad8b-69e90839fb3c
2024-08-21 18:57:05,858 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/6c58ad43-7289-4a2e-80f2-e974daf2879a
2024-08-21 18:57:05,864 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/6c58ad43-7289-4a2e-80f2-e974daf2879a
2024-08-21 18:57:05,869 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/ddac1292-a776-464b-94a1-3de92a378b9f
2024-08-21 18:57:05,876 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 18:57:05,876 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/76a3e888-a8fe-4493-ad8b-69e90839fb3c
2024-08-21 18:57:05,883 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/6c58ad43-7289-4a2e-80f2-e974daf2879a
2024-08-21 18:57:05,895 - INFO - Verified VN network id 9 for VN 76a3e888-a8fe-4493-ad8b-69e90839fb3c
2024-08-21 18:57:05,896 - INFO - Verifications in API Server for VN ctest-vn-44892047 passed
2024-08-21 18:57:05,896 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/76a3e888-a8fe-4493-ad8b-69e90839fb3c
2024-08-21 18:57:05,905 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/6c58ad43-7289-4a2e-80f2-e974daf2879a
2024-08-21 18:57:05,912 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/6c58ad43-7289-4a2e-80f2-e974daf2879a
2024-08-21 18:57:05,919 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/ddac1292-a776-464b-94a1-3de92a378b9f
2024-08-21 18:57:05,930 - DEBUG - Control-node 10.0.0.55 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-44892047', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58069638', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8548932191327765651', 'uuid-lslong': '12505205239910628156'}, 'enable': 'true', 'created': '2024-08-21T18:57:03', 'last-modified': '2024-08-21T18:57:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.952169'}
2024-08-21 18:57:05,937 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 18:57:05,937 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44892047 passed
2024-08-21 18:57:05,937 - DEBUG - ====Verifying policy data for ctest-vn-44892047 in API_Server ======
2024-08-21 18:57:05,937 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2024-08-21 18:57:05,942 - DEBUG - Requesting: http://10.0.0.55:8082/domain/8ce7fad6-ebae-4f5e-be79-040a5c67b5c9
2024-08-21 18:57:05,953 - DEBUG - Requesting: http://10.0.0.55:8082/project/5ed2c1fd-31c8-4dac-a8b6-8e378d19f8fd
2024-08-21 18:57:06,025 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/76a3e888-a8fe-4493-ad8b-69e90839fb3c
2024-08-21 18:57:06,044 - DEBUG - ==>Verifying data for policy with id: 2f0139a7-26ab-4b75-b620-1f35ea86557f, fqn: ['default-domain', 'ctest-TestBasicPolicy-58069638', 'ctest-policy-allow-all-99903820']
2024-08-21 18:57:06,044 - INFO - VN ctest-vn-44892047 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 18:57:06,044 - DEBUG - Verifying the vn in opserver
2024-08-21 18:57:06,044 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-44892047 virtual network link through opserver 10.0.0.55
2024-08-21 18:57:06,045 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks
2024-08-21 18:57:06,343 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks
2024-08-21 18:57:06,403 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-44892047', 'href': 'http://10.0.0.55:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-44892047?flat'}
2024-08-21 18:57:06,403 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-44892047 is found in opserver
2024-08-21 18:57:06,413 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 18:57:06,417 - DEBUG - VRF ids for VN ctest-vn-44892047: {}
2024-08-21 18:57:06,418 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2024-08-21 18:57:06,423 - DEBUG - Requesting: http://10.0.0.55:8082/domain/8ce7fad6-ebae-4f5e-be79-040a5c67b5c9
2024-08-21 18:57:06,435 - DEBUG - Requesting: http://10.0.0.55:8082/project/5ed2c1fd-31c8-4dac-a8b6-8e378d19f8fd
2024-08-21 18:57:06,503 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/6a2fc8d6-0c65-4f22-9a77-32ea8dc42019
2024-08-21 18:57:06,514 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/6a2fc8d6-0c65-4f22-9a77-32ea8dc42019
2024-08-21 18:57:06,521 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/98679fc3-14d4-4ef3-bd2a-6b5c6a654458
2024-08-21 18:57:06,528 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/98679fc3-14d4-4ef3-bd2a-6b5c6a654458
2024-08-21 18:57:06,534 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/f06fefb1-acdf-4d24-99b9-557e4f63626a
2024-08-21 18:57:06,540 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 18:57:06,540 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/6a2fc8d6-0c65-4f22-9a77-32ea8dc42019
2024-08-21 18:57:06,547 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/98679fc3-14d4-4ef3-bd2a-6b5c6a654458
2024-08-21 18:57:06,559 - INFO - Verified VN network id 10 for VN 6a2fc8d6-0c65-4f22-9a77-32ea8dc42019
2024-08-21 18:57:06,559 - INFO - Verifications in API Server for VN ctest-vn-14582809 passed
2024-08-21 18:57:06,559 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/6a2fc8d6-0c65-4f22-9a77-32ea8dc42019
2024-08-21 18:57:06,566 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/98679fc3-14d4-4ef3-bd2a-6b5c6a654458
2024-08-21 18:57:06,572 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/98679fc3-14d4-4ef3-bd2a-6b5c6a654458
2024-08-21 18:57:06,578 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/f06fefb1-acdf-4d24-99b9-557e4f63626a
2024-08-21 18:57:06,590 - DEBUG - Control-node 10.0.0.55 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-14582809', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58069638', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7651555113582284578', 'uuid-lslong': '11130420987051647001'}, 'enable': 'true', 'created': '2024-08-21T18:57:04', 'last-modified': '2024-08-21T18:57:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.363961'}
2024-08-21 18:57:06,596 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 18:57:06,596 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14582809 passed
2024-08-21 18:57:06,596 - DEBUG - ====Verifying policy data for ctest-vn-14582809 in API_Server ======
2024-08-21 18:57:06,597 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2024-08-21 18:57:06,602 - DEBUG - Requesting: http://10.0.0.55:8082/domain/8ce7fad6-ebae-4f5e-be79-040a5c67b5c9
2024-08-21 18:57:06,613 - DEBUG - Requesting: http://10.0.0.55:8082/project/5ed2c1fd-31c8-4dac-a8b6-8e378d19f8fd
2024-08-21 18:57:06,683 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/6a2fc8d6-0c65-4f22-9a77-32ea8dc42019
2024-08-21 18:57:06,691 - DEBUG - ==>Verifying data for policy with id: 2f0139a7-26ab-4b75-b620-1f35ea86557f, fqn: ['default-domain', 'ctest-TestBasicPolicy-58069638', 'ctest-policy-allow-all-99903820']
2024-08-21 18:57:06,691 - INFO - VN ctest-vn-14582809 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 18:57:06,691 - DEBUG - Verifying the vn in opserver
2024-08-21 18:57:06,691 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-14582809 virtual network link through opserver 10.0.0.55
2024-08-21 18:57:06,691 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks
2024-08-21 18:57:06,702 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-14582809', 'href': 'http://10.0.0.55:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-14582809?flat'}
2024-08-21 18:57:06,702 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-14582809 is found in opserver
2024-08-21 18:57:06,712 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 18:57:06,717 - DEBUG - VRF ids for VN ctest-vn-14582809: {}
2024-08-21 18:57:06,772 - DEBUG - Services list from nova: [