2024-11-13 09:02:48,175 - INFO - Domain Default found not creating
2024-11-13 09:02:48,356 - INFO - Project ctest-TestBasicPolicy-79496229 not found, creating it
2024-11-13 09:02:48,889 - INFO - Created Project:ctest-TestBasicPolicy-79496229, ID : f1392ac2-0181-4c1e-83f0-83f71d4dc79d
2024-11-13 09:02:50,450 - INFO - ================================================================================
2024-11-13 09:02:50,450 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-13 09:02:50,450 - 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-13 09:02:50,709 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.5': '0'}} with
2024-11-13 09:02:50,709 - INFO - Initial checks done. Running the testcase now
2024-11-13 09:02:50,710 - INFO -
2024-11-13 09:02:51,283 - DEBUG - Response for create_network : {'network': {'id': '44e660d0-b5e6-4cf4-b416-d077eba5073d', 'name': 'ctest-vn-25656554', 'tenant_id': 'f1392ac201814c1e83f083f71d4dc79d', 'project_id': 'f1392ac201814c1e83f083f71d4dc79d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79496229', 'ctest-vn-25656554'], 'port_security_enabled': True, 'description': ''}}
2024-11-13 09:02:51,518 - DEBUG - Response for create_subnet : {'subnet': {'id': '2801c12b-bdb4-44a3-94ce-bccf52f45cc7', 'name': '', 'tenant_id': 'f1392ac201814c1e83f083f71d4dc79d', 'network_id': '44e660d0-b5e6-4cf4-b416-d077eba5073d', 'ip_version': 4, 'cidr': '167.145.55.0/26', 'allocation_pools': [{'start': '167.145.55.2', 'end': '167.145.55.62'}], 'gateway_ip': '167.145.55.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.145.55.2', 'tags': [], 'project_id': 'f1392ac201814c1e83f083f71d4dc79d'}}
2024-11-13 09:02:51,540 - INFO - Created VN ctest-vn-25656554
2024-11-13 09:02:51,599 - DEBUG - VN ctest-vn-25656554 UUID is 44e660d0-b5e6-4cf4-b416-d077eba5073d
2024-11-13 09:02:51,925 - DEBUG - Response for create_network : {'network': {'id': 'db835f11-eaa3-4198-b0bb-8263489401b8', 'name': 'ctest-vn-87103544', 'tenant_id': 'f1392ac201814c1e83f083f71d4dc79d', 'project_id': 'f1392ac201814c1e83f083f71d4dc79d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79496229', 'ctest-vn-87103544'], 'port_security_enabled': True, 'description': ''}}
2024-11-13 09:02:52,075 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce057e0d-1344-469a-81e2-4fdd40f64303', 'name': '', 'tenant_id': 'f1392ac201814c1e83f083f71d4dc79d', 'network_id': 'db835f11-eaa3-4198-b0bb-8263489401b8', 'ip_version': 4, 'cidr': '44.14.6.64/26', 'allocation_pools': [{'start': '44.14.6.66', 'end': '44.14.6.126'}], 'gateway_ip': '44.14.6.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.14.6.66', 'tags': [], 'project_id': 'f1392ac201814c1e83f083f71d4dc79d'}}
2024-11-13 09:02:52,095 - INFO - Created VN ctest-vn-87103544
2024-11-13 09:02:52,155 - DEBUG - VN ctest-vn-87103544 UUID is db835f11-eaa3-4198-b0bb-8263489401b8
2024-11-13 09:02:52,281 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-25656554, 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-79496229:ctest-vn-87103544, 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-13 09:02:52,670 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '44e660d0-b5e6-4cf4-b416-d077eba5073d', 'name': 'ctest-vn-25656554', 'tenant_id': 'f1392ac201814c1e83f083f71d4dc79d', 'project_id': 'f1392ac201814c1e83f083f71d4dc79d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2801c12b-bdb4-44a3-94ce-bccf52f45cc7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79496229', 'ctest-vn-25656554'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79496229', 'ctest-policy-allow-all-86339654']], 'subnet_ipam': [{'subnet_cidr': '167.145.55.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-13 09:02:52,988 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db835f11-eaa3-4198-b0bb-8263489401b8', 'name': 'ctest-vn-87103544', 'tenant_id': 'f1392ac201814c1e83f083f71d4dc79d', 'project_id': 'f1392ac201814c1e83f083f71d4dc79d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ce057e0d-1344-469a-81e2-4fdd40f64303'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79496229', 'ctest-vn-87103544'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79496229', 'ctest-policy-allow-all-86339654']], 'subnet_ipam': [{'subnet_cidr': '44.14.6.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-13 09:02:53,139 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-13 09:02:53,454 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-13 09:02:53,488 - DEBUG - Requesting: http://10.0.0.12:8082/domain/37803685-2477-4c40-9a9f-d9b652eac567
2024-11-13 09:02:53,508 - DEBUG - Requesting: http://10.0.0.12:8082/project/f1392ac2-0181-4c1e-83f0-83f71d4dc79d
2024-11-13 09:02:53,599 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/44e660d0-b5e6-4cf4-b416-d077eba5073d
2024-11-13 09:02:53,616 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/44e660d0-b5e6-4cf4-b416-d077eba5073d
2024-11-13 09:02:53,633 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/71a8981d-7b50-460c-87c7-649fc4ae6940
2024-11-13 09:02:53,643 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/71a8981d-7b50-460c-87c7-649fc4ae6940
2024-11-13 09:02:53,653 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/d3269d3a-65bf-47bd-a065-5515882c9833
2024-11-13 09:02:53,661 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-13 09:02:53,661 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/44e660d0-b5e6-4cf4-b416-d077eba5073d
2024-11-13 09:02:53,676 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/71a8981d-7b50-460c-87c7-649fc4ae6940
2024-11-13 09:02:53,697 - INFO - Verified VN network id 7 for VN 44e660d0-b5e6-4cf4-b416-d077eba5073d
2024-11-13 09:02:53,697 - INFO - Verifications in API Server for VN ctest-vn-25656554 passed
2024-11-13 09:02:53,697 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/44e660d0-b5e6-4cf4-b416-d077eba5073d
2024-11-13 09:02:53,711 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/71a8981d-7b50-460c-87c7-649fc4ae6940
2024-11-13 09:02:53,721 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/71a8981d-7b50-460c-87c7-649fc4ae6940
2024-11-13 09:02:53,730 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/d3269d3a-65bf-47bd-a065-5515882c9833
2024-11-13 09:02:53,746 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-25656554', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79496229', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4964762088743783668', 'uuid-lslong': '12976788589787809597'}, 'enable': 'true', 'created': '2024-11-13T09:02:51', 'last-modified': '2024-11-13T09:02:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.111461'}
2024-11-13 09:02:53,754 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-13 09:02:53,754 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25656554 passed
2024-11-13 09:02:53,754 - DEBUG - ====Verifying policy data for ctest-vn-25656554 in API_Server ======
2024-11-13 09:02:53,754 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-13 09:02:53,763 - DEBUG - Requesting: http://10.0.0.12:8082/domain/37803685-2477-4c40-9a9f-d9b652eac567
2024-11-13 09:02:53,779 - DEBUG - Requesting: http://10.0.0.12:8082/project/f1392ac2-0181-4c1e-83f0-83f71d4dc79d
2024-11-13 09:02:53,865 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/44e660d0-b5e6-4cf4-b416-d077eba5073d
2024-11-13 09:02:53,880 - DEBUG - ==>Verifying data for policy with id: 415bb484-1d1a-4fbe-a42c-6c0aa5e3e5c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-79496229', 'ctest-policy-allow-all-86339654']
2024-11-13 09:02:53,880 - INFO - VN ctest-vn-25656554 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-13 09:02:53,881 - DEBUG - Verifying the vn in opserver
2024-11-13 09:02:53,881 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-25656554 virtual network link through opserver 10.0.0.12
2024-11-13 09:02:53,881 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-13 09:02:54,190 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-13 09:02:54,257 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-25656554', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-25656554?flat'}
2024-11-13 09:02:54,257 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-25656554 is found in opserver
2024-11-13 09:02:54,269 - DEBUG - Do not have enough data to verify VN in agent
2024-11-13 09:02:54,274 - DEBUG - VRF ids for VN ctest-vn-25656554: {}
2024-11-13 09:02:54,274 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-13 09:02:54,280 - DEBUG - Requesting: http://10.0.0.12:8082/domain/37803685-2477-4c40-9a9f-d9b652eac567
2024-11-13 09:02:54,295 - DEBUG - Requesting: http://10.0.0.12:8082/project/f1392ac2-0181-4c1e-83f0-83f71d4dc79d
2024-11-13 09:02:54,374 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/db835f11-eaa3-4198-b0bb-8263489401b8
2024-11-13 09:02:54,391 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/db835f11-eaa3-4198-b0bb-8263489401b8
2024-11-13 09:02:54,406 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e82bb5d9-f21c-422d-a348-31b8eaa57538
2024-11-13 09:02:54,416 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e82bb5d9-f21c-422d-a348-31b8eaa57538
2024-11-13 09:02:54,426 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/116b5baa-9c5b-4078-9a68-be0077482334
2024-11-13 09:02:54,434 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-13 09:02:54,434 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/db835f11-eaa3-4198-b0bb-8263489401b8
2024-11-13 09:02:54,449 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e82bb5d9-f21c-422d-a348-31b8eaa57538
2024-11-13 09:02:54,478 - INFO - Verified VN network id 8 for VN db835f11-eaa3-4198-b0bb-8263489401b8
2024-11-13 09:02:54,478 - INFO - Verifications in API Server for VN ctest-vn-87103544 passed
2024-11-13 09:02:54,478 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/db835f11-eaa3-4198-b0bb-8263489401b8
2024-11-13 09:02:54,493 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e82bb5d9-f21c-422d-a348-31b8eaa57538
2024-11-13 09:02:54,502 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e82bb5d9-f21c-422d-a348-31b8eaa57538
2024-11-13 09:02:54,513 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/116b5baa-9c5b-4078-9a68-be0077482334
2024-11-13 09:02:54,530 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-87103544', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79496229', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15817590846810964376', 'uuid-lslong': '12734915734251241912'}, 'enable': 'true', 'created': '2024-11-13T09:02:51', 'last-modified': '2024-11-13T09:02:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.585625'}
2024-11-13 09:02:54,537 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-13 09:02:54,538 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87103544 passed
2024-11-13 09:02:54,538 - DEBUG - ====Verifying policy data for ctest-vn-87103544 in API_Server ======
2024-11-13 09:02:54,538 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-13 09:02:54,544 - DEBUG - Requesting: http://10.0.0.12:8082/domain/37803685-2477-4c40-9a9f-d9b652eac567
2024-11-13 09:02:54,561 - DEBUG - Requesting: http://10.0.0.12:8082/project/f1392ac2-0181-4c1e-83f0-83f71d4dc79d
2024-11-13 09:02:54,650 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/db835f11-eaa3-4198-b0bb-8263489401b8
2024-11-13 09:02:54,666 - DEBUG - ==>Verifying data for policy with id: 415bb484-1d1a-4fbe-a42c-6c0aa5e3e5c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-79496229', 'ctest-policy-allow-all-86339654']
2024-11-13 09:02:54,666 - INFO - VN ctest-vn-87103544 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-13 09:02:54,666 - DEBUG - Verifying the vn in opserver
2024-11-13 09:02:54,666 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-87103544 virtual network link through opserver 10.0.0.12
2024-11-13 09:02:54,666 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-13 09:02:54,681 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-87103544', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-87103544?flat'}
2024-11-13 09:02:54,681 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-87103544 is found in opserver
2024-11-13 09:02:54,695 - DEBUG - Do not have enough data to verify VN in agent
2024-11-13 09:02:54,701 - DEBUG - VRF ids for VN ctest-vn-87103544: {}
2024-11-13 09:02:54,775 - DEBUG - Services list from nova: [