2024-08-24 16:04:58,055 - INFO - Domain Default found not creating
2024-08-24 16:04:58,214 - INFO - Project ctest-TestBasicPolicy-02920311 not found, creating it
2024-08-24 16:04:58,681 - INFO - Created Project:ctest-TestBasicPolicy-02920311, ID : 5bb4ddde-d0df-4969-bd17-7460407e088f
2024-08-24 16:05:00,163 - INFO - ================================================================================
2024-08-24 16:05:00,163 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-24 16:05:00,163 - 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-24 16:05:00,418 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.5': '0'}} with
2024-08-24 16:05:00,418 - INFO - Initial checks done. Running the testcase now
2024-08-24 16:05:00,418 - INFO -
2024-08-24 16:05:00,983 - DEBUG - Response for create_network : {'network': {'id': 'f42d2180-b355-487e-86d0-243377def9cf', 'name': 'ctest-vn-30835085', 'tenant_id': '5bb4ddded0df4969bd177460407e088f', 'project_id': '5bb4ddded0df4969bd177460407e088f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02920311', 'ctest-vn-30835085'], 'port_security_enabled': True, 'description': ''}}
2024-08-24 16:05:01,157 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c37e04d-6285-4d94-b097-f90fa0cc8742', 'name': '', 'tenant_id': '5bb4ddded0df4969bd177460407e088f', 'network_id': 'f42d2180-b355-487e-86d0-243377def9cf', 'ip_version': 4, 'cidr': '75.133.243.0/26', 'allocation_pools': [{'start': '75.133.243.2', 'end': '75.133.243.62'}], 'gateway_ip': '75.133.243.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.133.243.2', 'tags': [], 'project_id': '5bb4ddded0df4969bd177460407e088f'}}
2024-08-24 16:05:01,177 - INFO - Created VN ctest-vn-30835085
2024-08-24 16:05:01,229 - DEBUG - VN ctest-vn-30835085 UUID is f42d2180-b355-487e-86d0-243377def9cf
2024-08-24 16:05:01,548 - DEBUG - Response for create_network : {'network': {'id': '63b985f3-5ce2-42d3-a00d-961c0a46ed51', 'name': 'ctest-vn-72870984', 'tenant_id': '5bb4ddded0df4969bd177460407e088f', 'project_id': '5bb4ddded0df4969bd177460407e088f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02920311', 'ctest-vn-72870984'], 'port_security_enabled': True, 'description': ''}}
2024-08-24 16:05:01,760 - DEBUG - Response for create_subnet : {'subnet': {'id': '16f99d38-4ce9-450b-bc63-933cc12bcc62', 'name': '', 'tenant_id': '5bb4ddded0df4969bd177460407e088f', 'network_id': '63b985f3-5ce2-42d3-a00d-961c0a46ed51', 'ip_version': 4, 'cidr': '118.197.85.128/26', 'allocation_pools': [{'start': '118.197.85.130', 'end': '118.197.85.190'}], 'gateway_ip': '118.197.85.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.197.85.130', 'tags': [], 'project_id': '5bb4ddded0df4969bd177460407e088f'}}
2024-08-24 16:05:01,782 - INFO - Created VN ctest-vn-72870984
2024-08-24 16:05:01,833 - DEBUG - VN ctest-vn-72870984 UUID is 63b985f3-5ce2-42d3-a00d-961c0a46ed51
2024-08-24 16:05:01,947 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-30835085, 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-02920311:ctest-vn-72870984, 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-24 16:05:02,256 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f42d2180-b355-487e-86d0-243377def9cf', 'name': 'ctest-vn-30835085', 'tenant_id': '5bb4ddded0df4969bd177460407e088f', 'project_id': '5bb4ddded0df4969bd177460407e088f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c37e04d-6285-4d94-b097-f90fa0cc8742'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02920311', 'ctest-vn-30835085'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02920311', 'ctest-policy-allow-all-13065362']], 'subnet_ipam': [{'subnet_cidr': '75.133.243.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-24 16:05:02,499 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '63b985f3-5ce2-42d3-a00d-961c0a46ed51', 'name': 'ctest-vn-72870984', 'tenant_id': '5bb4ddded0df4969bd177460407e088f', 'project_id': '5bb4ddded0df4969bd177460407e088f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['16f99d38-4ce9-450b-bc63-933cc12bcc62'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02920311', 'ctest-vn-72870984'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02920311', 'ctest-policy-allow-all-13065362']], 'subnet_ipam': [{'subnet_cidr': '118.197.85.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-24 16:05:02,653 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-24 16:05:02,963 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-24 16:05:02,994 - DEBUG - Requesting: http://10.0.0.36:8082/domain/e3c78fce-7b43-4ca2-af65-256fa7b87b32
2024-08-24 16:05:03,008 - DEBUG - Requesting: http://10.0.0.36:8082/project/5bb4ddde-d0df-4969-bd17-7460407e088f
2024-08-24 16:05:03,078 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f42d2180-b355-487e-86d0-243377def9cf
2024-08-24 16:05:03,088 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f42d2180-b355-487e-86d0-243377def9cf
2024-08-24 16:05:03,096 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4a27c3a6-54fc-4ed1-b2b3-7281375984d2
2024-08-24 16:05:03,103 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4a27c3a6-54fc-4ed1-b2b3-7281375984d2
2024-08-24 16:05:03,110 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/f35b7a7a-56b8-420c-9771-6ed401d8e6d3
2024-08-24 16:05:03,116 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-24 16:05:03,116 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f42d2180-b355-487e-86d0-243377def9cf
2024-08-24 16:05:03,124 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4a27c3a6-54fc-4ed1-b2b3-7281375984d2
2024-08-24 16:05:03,138 - INFO - Verified VN network id 9 for VN f42d2180-b355-487e-86d0-243377def9cf
2024-08-24 16:05:03,138 - INFO - Verifications in API Server for VN ctest-vn-30835085 passed
2024-08-24 16:05:03,138 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f42d2180-b355-487e-86d0-243377def9cf
2024-08-24 16:05:03,147 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4a27c3a6-54fc-4ed1-b2b3-7281375984d2
2024-08-24 16:05:03,154 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4a27c3a6-54fc-4ed1-b2b3-7281375984d2
2024-08-24 16:05:03,160 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/f35b7a7a-56b8-420c-9771-6ed401d8e6d3
2024-08-24 16:05:03,173 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-30835085', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02920311', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17594756155854637182', 'uuid-lslong': '9714304199711193551'}, 'enable': 'true', 'created': '2024-08-24T16:05:00', 'last-modified': '2024-08-24T16:05:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.939529'}
2024-08-24 16:05:03,181 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-24 16:05:03,182 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30835085 passed
2024-08-24 16:05:03,182 - DEBUG - ====Verifying policy data for ctest-vn-30835085 in API_Server ======
2024-08-24 16:05:03,182 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-24 16:05:03,188 - DEBUG - Requesting: http://10.0.0.36:8082/domain/e3c78fce-7b43-4ca2-af65-256fa7b87b32
2024-08-24 16:05:03,201 - DEBUG - Requesting: http://10.0.0.36:8082/project/5bb4ddde-d0df-4969-bd17-7460407e088f
2024-08-24 16:05:03,275 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f42d2180-b355-487e-86d0-243377def9cf
2024-08-24 16:05:03,283 - DEBUG - ==>Verifying data for policy with id: 826f6106-c7eb-44a6-8fbc-abcc11c20fba, fqn: ['default-domain', 'ctest-TestBasicPolicy-02920311', 'ctest-policy-allow-all-13065362']
2024-08-24 16:05:03,283 - INFO - VN ctest-vn-30835085 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-24 16:05:03,283 - DEBUG - Verifying the vn in opserver
2024-08-24 16:05:03,283 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-30835085 virtual network link through opserver 10.0.0.36
2024-08-24 16:05:03,284 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-08-24 16:05:03,578 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-08-24 16:05:03,641 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-30835085', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-30835085?flat'}
2024-08-24 16:05:03,641 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-30835085 is found in opserver
2024-08-24 16:05:03,654 - DEBUG - Do not have enough data to verify VN in agent
2024-08-24 16:05:03,662 - DEBUG - VRF ids for VN ctest-vn-30835085: {}
2024-08-24 16:05:03,662 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-24 16:05:03,673 - DEBUG - Requesting: http://10.0.0.36:8082/domain/e3c78fce-7b43-4ca2-af65-256fa7b87b32
2024-08-24 16:05:03,687 - DEBUG - Requesting: http://10.0.0.36:8082/project/5bb4ddde-d0df-4969-bd17-7460407e088f
2024-08-24 16:05:03,756 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/63b985f3-5ce2-42d3-a00d-961c0a46ed51
2024-08-24 16:05:03,768 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/63b985f3-5ce2-42d3-a00d-961c0a46ed51
2024-08-24 16:05:03,776 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d9c533d2-6fc8-4063-a6f6-aa68a670e81c
2024-08-24 16:05:03,783 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d9c533d2-6fc8-4063-a6f6-aa68a670e81c
2024-08-24 16:05:03,789 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/0366ab0c-2605-4a2f-aba0-d23e5384802f
2024-08-24 16:05:03,796 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-24 16:05:03,796 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/63b985f3-5ce2-42d3-a00d-961c0a46ed51
2024-08-24 16:05:03,803 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d9c533d2-6fc8-4063-a6f6-aa68a670e81c
2024-08-24 16:05:03,815 - INFO - Verified VN network id 10 for VN 63b985f3-5ce2-42d3-a00d-961c0a46ed51
2024-08-24 16:05:03,815 - INFO - Verifications in API Server for VN ctest-vn-72870984 passed
2024-08-24 16:05:03,815 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/63b985f3-5ce2-42d3-a00d-961c0a46ed51
2024-08-24 16:05:03,827 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d9c533d2-6fc8-4063-a6f6-aa68a670e81c
2024-08-24 16:05:03,834 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d9c533d2-6fc8-4063-a6f6-aa68a670e81c
2024-08-24 16:05:03,841 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/0366ab0c-2605-4a2f-aba0-d23e5384802f
2024-08-24 16:05:03,855 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-72870984', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02920311', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7185921960728216275', 'uuid-lslong': '11533039267941379409'}, 'enable': 'true', 'created': '2024-08-24T16:05:01', 'last-modified': '2024-08-24T16:05:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.379396'}
2024-08-24 16:05:03,862 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-24 16:05:03,863 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72870984 passed
2024-08-24 16:05:03,863 - DEBUG - ====Verifying policy data for ctest-vn-72870984 in API_Server ======
2024-08-24 16:05:03,863 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-24 16:05:03,869 - DEBUG - Requesting: http://10.0.0.36:8082/domain/e3c78fce-7b43-4ca2-af65-256fa7b87b32
2024-08-24 16:05:03,882 - DEBUG - Requesting: http://10.0.0.36:8082/project/5bb4ddde-d0df-4969-bd17-7460407e088f
2024-08-24 16:05:03,952 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/63b985f3-5ce2-42d3-a00d-961c0a46ed51
2024-08-24 16:05:03,960 - DEBUG - ==>Verifying data for policy with id: 826f6106-c7eb-44a6-8fbc-abcc11c20fba, fqn: ['default-domain', 'ctest-TestBasicPolicy-02920311', 'ctest-policy-allow-all-13065362']
2024-08-24 16:05:03,960 - INFO - VN ctest-vn-72870984 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-24 16:05:03,960 - DEBUG - Verifying the vn in opserver
2024-08-24 16:05:03,960 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-72870984 virtual network link through opserver 10.0.0.36
2024-08-24 16:05:03,960 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-08-24 16:05:03,970 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-72870984', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-72870984?flat'}
2024-08-24 16:05:03,970 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-72870984 is found in opserver
2024-08-24 16:05:03,981 - DEBUG - Do not have enough data to verify VN in agent
2024-08-24 16:05:03,986 - DEBUG - VRF ids for VN ctest-vn-72870984: {}
2024-08-24 16:05:04,048 - DEBUG - Services list from nova: [