2024-08-26 22:25:24,157 - INFO - Domain Default found not creating
2024-08-26 22:25:24,327 - INFO - Project ctest-TestBasicPolicy-90212436 not found, creating it
2024-08-26 22:25:24,812 - INFO - Created Project:ctest-TestBasicPolicy-90212436, ID : f3cd8f81-2ae5-4b7e-93c5-e7b5f229b6d1
2024-08-26 22:25:26,285 - INFO - ================================================================================
2024-08-26 22:25:26,285 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-26 22:25:26,286 - 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-26 22:25:26,539 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.14': '0'}} with
2024-08-26 22:25:26,539 - INFO - Initial checks done. Running the testcase now
2024-08-26 22:25:26,539 - INFO -
2024-08-26 22:25:27,103 - DEBUG - Response for create_network : {'network': {'id': '8fbc21d5-3e50-4286-90fe-9fffc0c0fe72', 'name': 'ctest-vn-58941838', 'tenant_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'project_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90212436', 'ctest-vn-58941838'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 22:25:27,268 - DEBUG - Response for create_subnet : {'subnet': {'id': '02361666-99ac-4971-9e8a-5d093e41e731', 'name': '', 'tenant_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'network_id': '8fbc21d5-3e50-4286-90fe-9fffc0c0fe72', 'ip_version': 4, 'cidr': '53.204.214.128/26', 'allocation_pools': [{'start': '53.204.214.130', 'end': '53.204.214.190'}], 'gateway_ip': '53.204.214.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.204.214.130', 'tags': [], 'project_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1'}}
2024-08-26 22:25:27,289 - INFO - Created VN ctest-vn-58941838
2024-08-26 22:25:27,344 - DEBUG - VN ctest-vn-58941838 UUID is 8fbc21d5-3e50-4286-90fe-9fffc0c0fe72
2024-08-26 22:25:27,886 - DEBUG - Response for create_network : {'network': {'id': 'a3410394-2149-4d1f-a123-74bfb7122137', 'name': 'ctest-vn-50793393', 'tenant_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'project_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90212436', 'ctest-vn-50793393'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 22:25:28,119 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c28cf4bb-d45e-4518-85e7-62883660f788', 'name': '', 'tenant_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'network_id': 'a3410394-2149-4d1f-a123-74bfb7122137', 'ip_version': 4, 'cidr': '163.143.92.0/26', 'allocation_pools': [{'start': '163.143.92.2', 'end': '163.143.92.62'}], 'gateway_ip': '163.143.92.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.143.92.2', 'tags': [], 'project_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1'}}
2024-08-26 22:25:28,141 - INFO - Created VN ctest-vn-50793393
2024-08-26 22:25:28,197 - DEBUG - VN ctest-vn-50793393 UUID is a3410394-2149-4d1f-a123-74bfb7122137
2024-08-26 22:25:28,323 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-58941838, 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-90212436:ctest-vn-50793393, 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-26 22:25:28,633 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8fbc21d5-3e50-4286-90fe-9fffc0c0fe72', 'name': 'ctest-vn-58941838', 'tenant_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'project_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['02361666-99ac-4971-9e8a-5d093e41e731'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90212436', 'ctest-vn-58941838'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90212436', 'ctest-policy-allow-all-61537333']], 'subnet_ipam': [{'subnet_cidr': '53.204.214.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 22:25:28,929 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a3410394-2149-4d1f-a123-74bfb7122137', 'name': 'ctest-vn-50793393', 'tenant_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'project_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c28cf4bb-d45e-4518-85e7-62883660f788'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90212436', 'ctest-vn-50793393'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90212436', 'ctest-policy-allow-all-61537333']], 'subnet_ipam': [{'subnet_cidr': '163.143.92.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 22:25:29,077 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-26 22:25:29,375 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-26 22:25:29,405 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2d81f321-0ba5-446a-b9e6-944050897b55
2024-08-26 22:25:29,420 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3cd8f81-2ae5-4b7e-93c5-e7b5f229b6d1
2024-08-26 22:25:29,492 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8fbc21d5-3e50-4286-90fe-9fffc0c0fe72
2024-08-26 22:25:29,502 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8fbc21d5-3e50-4286-90fe-9fffc0c0fe72
2024-08-26 22:25:29,510 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/24fda15d-fb09-4663-a155-19a5519b5332
2024-08-26 22:25:29,517 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/24fda15d-fb09-4663-a155-19a5519b5332
2024-08-26 22:25:29,524 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/ad3ebcd6-198d-4eb6-81d5-6771a2a48dfb
2024-08-26 22:25:29,530 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 22:25:29,530 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8fbc21d5-3e50-4286-90fe-9fffc0c0fe72
2024-08-26 22:25:29,538 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/24fda15d-fb09-4663-a155-19a5519b5332
2024-08-26 22:25:29,550 - INFO - Verified VN network id 8 for VN 8fbc21d5-3e50-4286-90fe-9fffc0c0fe72
2024-08-26 22:25:29,550 - INFO - Verifications in API Server for VN ctest-vn-58941838 passed
2024-08-26 22:25:29,550 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8fbc21d5-3e50-4286-90fe-9fffc0c0fe72
2024-08-26 22:25:29,559 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/24fda15d-fb09-4663-a155-19a5519b5332
2024-08-26 22:25:29,566 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/24fda15d-fb09-4663-a155-19a5519b5332
2024-08-26 22:25:29,574 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/ad3ebcd6-198d-4eb6-81d5-6771a2a48dfb
2024-08-26 22:25:29,587 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-58941838', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90212436', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10357190442802496134', 'uuid-lslong': '10447964106345479794'}, 'enable': 'true', 'created': '2024-08-26T22:25:27', 'last-modified': '2024-08-26T22:25:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983623'}
2024-08-26 22:25:29,594 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 22:25:29,594 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58941838 passed
2024-08-26 22:25:29,594 - DEBUG - ====Verifying policy data for ctest-vn-58941838 in API_Server ======
2024-08-26 22:25:29,594 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-26 22:25:29,601 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2d81f321-0ba5-446a-b9e6-944050897b55
2024-08-26 22:25:29,614 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3cd8f81-2ae5-4b7e-93c5-e7b5f229b6d1
2024-08-26 22:25:29,683 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8fbc21d5-3e50-4286-90fe-9fffc0c0fe72
2024-08-26 22:25:29,693 - DEBUG - ==>Verifying data for policy with id: 9e1a8103-d814-4077-ab33-8f1fe3902905, fqn: ['default-domain', 'ctest-TestBasicPolicy-90212436', 'ctest-policy-allow-all-61537333']
2024-08-26 22:25:29,693 - INFO - VN ctest-vn-58941838 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 22:25:29,693 - DEBUG - Verifying the vn in opserver
2024-08-26 22:25:29,693 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-58941838 virtual network link through opserver 10.0.0.29
2024-08-26 22:25:29,694 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-08-26 22:25:29,989 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-08-26 22:25:30,053 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-58941838', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-58941838?flat'}
2024-08-26 22:25:30,053 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-58941838 is found in opserver
2024-08-26 22:25:30,065 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 22:25:30,071 - DEBUG - VRF ids for VN ctest-vn-58941838: {}
2024-08-26 22:25:30,071 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-26 22:25:30,078 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2d81f321-0ba5-446a-b9e6-944050897b55
2024-08-26 22:25:30,091 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3cd8f81-2ae5-4b7e-93c5-e7b5f229b6d1
2024-08-26 22:25:30,162 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/a3410394-2149-4d1f-a123-74bfb7122137
2024-08-26 22:25:30,173 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/a3410394-2149-4d1f-a123-74bfb7122137
2024-08-26 22:25:30,183 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/69a93934-77ff-4b6d-8d98-55dbd675b5ad
2024-08-26 22:25:30,190 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/69a93934-77ff-4b6d-8d98-55dbd675b5ad
2024-08-26 22:25:30,199 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/372b03c8-9745-4ffe-b895-e3d289c157a8
2024-08-26 22:25:30,206 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 22:25:30,206 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/a3410394-2149-4d1f-a123-74bfb7122137
2024-08-26 22:25:30,217 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/69a93934-77ff-4b6d-8d98-55dbd675b5ad
2024-08-26 22:25:30,231 - INFO - Verified VN network id 9 for VN a3410394-2149-4d1f-a123-74bfb7122137
2024-08-26 22:25:30,231 - INFO - Verifications in API Server for VN ctest-vn-50793393 passed
2024-08-26 22:25:30,231 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/a3410394-2149-4d1f-a123-74bfb7122137
2024-08-26 22:25:30,241 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/69a93934-77ff-4b6d-8d98-55dbd675b5ad
2024-08-26 22:25:30,248 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/69a93934-77ff-4b6d-8d98-55dbd675b5ad
2024-08-26 22:25:30,255 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/372b03c8-9745-4ffe-b895-e3d289c157a8
2024-08-26 22:25:30,268 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-50793393', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90212436', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11763687636416941343', 'uuid-lslong': '11611252631050264887'}, 'enable': 'true', 'created': '2024-08-26T22:25:27', 'last-modified': '2024-08-26T22:25:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.414916'}
2024-08-26 22:25:30,275 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 22:25:30,275 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50793393 passed
2024-08-26 22:25:30,275 - DEBUG - ====Verifying policy data for ctest-vn-50793393 in API_Server ======
2024-08-26 22:25:30,275 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-26 22:25:30,281 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2d81f321-0ba5-446a-b9e6-944050897b55
2024-08-26 22:25:30,296 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3cd8f81-2ae5-4b7e-93c5-e7b5f229b6d1
2024-08-26 22:25:30,375 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/a3410394-2149-4d1f-a123-74bfb7122137
2024-08-26 22:25:30,384 - DEBUG - ==>Verifying data for policy with id: 9e1a8103-d814-4077-ab33-8f1fe3902905, fqn: ['default-domain', 'ctest-TestBasicPolicy-90212436', 'ctest-policy-allow-all-61537333']
2024-08-26 22:25:30,384 - INFO - VN ctest-vn-50793393 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 22:25:30,384 - DEBUG - Verifying the vn in opserver
2024-08-26 22:25:30,384 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-50793393 virtual network link through opserver 10.0.0.29
2024-08-26 22:25:30,384 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-08-26 22:25:30,397 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-50793393', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-50793393?flat'}
2024-08-26 22:25:30,397 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-50793393 is found in opserver
2024-08-26 22:25:30,408 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 22:25:30,415 - DEBUG - VRF ids for VN ctest-vn-50793393: {}
2024-08-26 22:25:30,475 - DEBUG - Services list from nova: [